Sample - Twilio API
DELETE/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json

Delete message media

Deletes a specific media resource associated with a message. Supply the account, message, and media SIDs to identify the media resource to remove.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
AccountSidstringrequired
The account SID associated with the media resource, matching the 34-character `AC` SID format.
MessageSidstringrequired
The SID of the message associated with the media resource, matching the 34-character `SM` or `MM` SID format.
Sidstringrequired
The unique media SID to delete, matching the 34-character `ME` SID format.

1 status code
204Returns no response content after the media resource is deleted successfully.

Error handling

AccountSid must be a 34-character SID beginning with AC, MessageSid must begin with SM or MM, and Sid must be a 34-character media SID beginning with ME. Use hexadecimal characters after each SID prefix.