This endpoint allows you to delete an existing audio or subtitle track from a media file using its media ID and track ID. Once deleted, the track will no longer be available for playback.
How it works
-
Send a DELETE request to the /on-demand/{mediaId}/tracks/{trackId} endpoint, replacing {mediaId} with the media ID, and {trackId} with the ID of the track you want to remove.
-
The track will be deleted from the media file, and you will receive a confirmation response.
Webhook Events
-
After successfully deleting a track, your system will receive the webhook event video.media.track.deleted.
-
Once the media file is updated to reflect the track removal, a video.media.updated event will be triggered.
Use case: Suppose you uploaded an audio track in Italian for a video but later realize it's incorrect or no longer needed. By calling this API, you can remove the specific track while keeping the rest of the media file unchanged. This is useful when:
- A track was mistakenly added and needs to be removed.
- The content owner requests the removal of a specific subtitle or audio track.
- A new version of the track will be uploaded to replace the existing one.