Delete

View as Markdown

Use this endpoint for the Calls method to delete a call. If the delete is successful, a 204 response, with no body, will be returned.

Path parameters

AccountSidstringRequiredformat: "uuid"
The Project ID that uniquely identifies the Account.
SidstringRequiredformat: "uuid"
The unique identifier for the call.

Request examples

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

Response

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