Delete media from your account

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

The Media resource represents a piece of media, such as an image, that is associated with a message.

Delete media from your account. Once delete, you will no longer be billed

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Media resource(s) to delete.

  • MessageSid string Required

    The SID of the Message resource that this Media resource belongs to.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Media resource to delete

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json \
 --user "username:password"