Delete

View as Markdown

Use this endpoint for the Media method to delete a media instance from your Project so it no longer appears in the Dashboard or on the API.

Path parameters

AccountSidstringRequiredformat: "uuid"
The unique identifier of the project that sent or received this message.
MessageSidstringRequiredformat: "uuid"
A unique ID that identifies this specific 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 .media('MediaSid')
6 .remove()
7 .then(media => console.log(media.sid))
8 .done();

Response

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