> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fucksornot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Upload

Delete an upload. Only the owner can delete their uploads.

## Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://fucksornot.com/api/upload/550e8400-e29b-41d4-a716-446655440000 \
    -H "Cookie: auth-token=YOUR_JWT_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://fucksornot.com/api/upload/550e8400-e29b-41d4-a716-446655440000',
    {
      method: 'DELETE',
      credentials: 'include' // sends the auth-token cookie
    }
  );
  ```
</CodeGroup>

## Response

```json theme={null}
{
  "success": true,
  "message": "Upload deleted successfully"
}
```

## Authorization

* Users can only delete their own uploads
* Admins can delete any upload via `/api/admin/uploads/{id}`

## Errors

| Status | Description                                                                                                       |
| ------ | ----------------------------------------------------------------------------------------------------------------- |
| 401    | Not authenticated                                                                                                 |
| 404    | Upload not found (also returned if the upload exists but you're not the owner, to avoid confirming its existence) |

<Warning>
  Deletion is permanent and cannot be undone. All associated votes and tags are also removed.
</Warning>
