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://messaging.bandwidth.com/api/v2/users/{accountId}/media/{mediaName}

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 'https://messaging.bandwidth.com/api/v2/users/{accountId}/media/{mediaName}' \
    -u '{token}:{secret}'
msgClient.DeleteMedia(MSG_ACCOUNT_ID, mediaId);
messaging_client.delete_media(MESSAGING_ACCOUNT_ID, "mediaId")
messaging_client.delete_media(MESSAGING_ACCOUNT_ID, "mediaId")

results matching ""

    No results matching ""