Delete

View as Markdown

Use this endpoint for the Media method to delete a message from your Project so it no longer appears in the Dashboard or on the API. Any Media files that may be associated with this message are not deleted, and will still be available for access in the usual methods.

Messages in progress may not be deleted, and attempting to do so results in an error.

Path parameters

AccountSidstringRequiredformat: "uuid"
The unique identifier of the project that sent or received this message.
SidstringRequiredformat: "uuid"
A unique ID that identifies this specific message.

Request examples

1const { RestClient } = require('@signalwire/compatibility-api')
2const client = RestClient('YourProjectID', 'YourAuthToken', { signalwireSpaceUrl: 'example.signalwire.com' })
3
4client.messages('MessageSid')
5 .remove()
6 .then(message => console.log(message.sid))
7 .done();

Response

A successful request returns a 204 status code with no body.