Delete Media: /media/ (DELETE)
Purpose:
Delete a media file from S3 and remove its metadata from the database.
Input:
- Headers:
- Content-Type: application/json
- Authorization: The JWT token of the user.
- JSON Body:
- id: (Uuid) The id of the media file.
Output (200):
{
"id": "f1be77ee-5f06-4792-9fb8-a0753d089471",
"file_name": "example.jpg",
"key": "media/convoforge/example.jpg",
"url": "https://example.com/media/convoforge/example.jpg",
"created_at": "2024-08-12T12:34:56",
"user_id": "a9967ee4-4c28-4e86-ae84-d66528f5b0b2",
"deleted": true
}