Delete the Media resource.

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

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

Delete the Media resource.

Path parameters

  • AccountSid string Required

    The SID of the Account that is associated with the Media resource.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

  • MessageSid string Required

    The SID of the Message resource that is associated with the Media resource.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^(SM|MM)[0-9a-fA-F]{32}$.

  • Sid string Required

    The unique identifier of the to-be-deleted Media resource.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ME[0-9a-fA-F]{32}$.

Responses

  • 204

    The resource was deleted successfully.

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