Delete a Message resource

To delete a Message resource, send a DELETE request to the Message resource's URI.

If the DELETE request is successful, Twilio's response status code is HTTP 204 (No Content).

A deleted Message resource no longer appears in your Account's Messaging logs. Deleted messages cannot be recovered.

Deleting a Message resource also deletes any associated Media and/or MessageFeedback sub-resources. Any associated media file is also deleted unless the same media file is associated with another Message resource in your Account. For example, if you send 1,000 messages with the same media file (e.g., a .jpeg file), that media file remains accessible until all 1,000 associated Message resources (and/or the associated Media sub-resources) are deleted.

Message bodies may persist for up to 30 days after an HTTP DELETE request in our database backups.

Parameters

Parameters in REST API format
account_sid

Path

DELETE sid<AC> Not PII

The SID of the Account associated with the Message resource

sid

Path

DELETE sid<MM> Not PII

The SID of the Message resource you wish to delete