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
Array of media IDs to delete. Always provide as an array, even for single deletions.
Response
Deletion result
Array of IDs that were successfully deleted
Array of failed deletions with error detailsShow Failed item properties
Media ID that failed to delete
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"
}
}