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

DELETEhttps://api.catapult.inetwork.com/v1/users/{userId}/media/{mediaName}

Example 1 of 1: Delete an MP3 File

curl -v -X DELETE https://api.catapult.inetwork.com/v1/users/{userId}/media/{mediaName} -u {token}:{secret}
client.Media.delete("file.mp3").
then(function (media) {
  console.log(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 ""