curl --request DELETE \
--url https://api.example.com/api/photos/:id{
"success": true,
"message": "<string>"
}Delete a photo (owner or admin only)
curl --request DELETE \
--url https://api.example.com/api/photos/:id{
"success": true,
"message": "<string>"
}DELETED) and removes the file from Supabase Storage.
Authorization: Bearer YOUR_ACCESS_TOKEN
ADMIN rolecurl --request DELETE \
--url https://api.losinmaduros.com/api/photos/123e4567-e89b-12d3-a456-426614174000 \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
{
"success": true,
"message": "Photo deleted successfully"
}
DELETED (soft delete)DELETED status.ACTIVE - Photo is visible in galleriesFLAGGED - Photo has been flagged for reviewREJECTED - Photo was rejected by a moderatorDELETED - Photo has been deletedROUTE_CALL_COVER - Cover photo for a route callROUTE_GALLERY - Photo in a route’s general galleryROUTE_CALL_GALLERY - Photo in a specific route call’s gallery