Skip to main content

Endpoint

POST https://api.ugc.inc/media/delete

Overview

Delete media items by their IDs. This will also delete the associated files from blob storage. Works for both user-uploaded media and social audio.

Request Body

ids
string[]
required
Array of media IDs to delete. Always provide as an array, even for single deletions.

Response

data
object
Deletion result
curl -X POST https://api.ugc.inc/media/delete \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": ["media_abc123", "audio_def456"]
  }'
{
  "ok": true,
  "code": 200,
  "data": {
    "deleted": ["media_abc123", "audio_def456"],
    "message": "Deleted 2 items"
  }
}