Remove Media File

Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file, you can immediately upload a new file with the same name.

Request URL


Example 1 of 1: Delete an MP3 File

curl -v -X DELETE{userId}/media/{mediaName} -u {token}:{secret}
then(function (media) {
await client.Media.DeleteAsync("file.mp3");
Media.delete(client, "file.mp3")

The above command returns an HTTP 200 response

results matching ""

    No results matching ""