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


Basic Authentication

Bandwidth's messaging API leverages Basic Authentication with your API Token and API Secret. Read more about how Bandwidth secures endpoints in the Security & Credentials document.

Example 1 of 1: Delete an MP3 File

curl -X DELETE \
    --url '{accountId}/media/{mediaName}' \
    -u '{token}:{secret}'
msgClient.DeleteMedia(MSG_ACCOUNT_ID, mediaId);
messagingClient.deleteMedia(MESSAGING_ACCOUNT_ID, "mediaId");
messaging_client.delete_media(MESSAGING_ACCOUNT_ID, "mediaId")
messaging_client.delete_media(MESSAGING_ACCOUNT_ID, "mediaId")
await messagingController.deleteMedia(messagingAccountId, "mediaId")
$messagingClient->deleteMedia($messagingAccountId, "mediaId");

results matching ""

    No results matching ""