Delete an upload. Only the owner can delete their uploads.
Request
curl -X DELETE https://fucksornot.com/api/upload/550e8400-e29b-41d4-a716-446655440000 \
-H "Cookie: auth-token=YOUR_JWT_TOKEN"
Response
{
"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) |
Deletion is permanent and cannot be undone. All associated votes and tags are also removed.