Deletes a Message resource from your account

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

A Message resource represents an inbound or outbound message.

Deletes a Message resource from your account

Path parameters

  • AccountSid string Required

    The SID of the Account associated with the Message resource

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

  • Sid string Required

    The SID of the Message resource you wish to delete

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

Responses

  • 204

    The resource was deleted successfully.

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