Delete media file
Delete media file
Permanently deletes a media file and automatically removes all references from agents that use this file. The deletion is performed in two stages: first removing agent references, then deleting the file itself.
DELETE
Delete media file
Cascade Deletion
The deletion process follows this sequence:- Remove agent references: All agents using this media file are updated automatically
- Delete file: The media file is permanently removed
What Gets Updated
Agents are automatically updated if they use the media file for:- Warm transfer hold music
- Cold transfer hold music
- Ambient noise/background sounds
Error Handling
If removing agent references fails, the media file is NOT deleted to ensure data consistency. You can safely retry the operation.Path Parameters
Media file identifier
Response
Media file deleted and agent references removed successfully