Skip to contentSkip to navigationSkip to topbar
Rate this Page:

Archived Calls


The Archived Calls resource allows you delete calls that have been archived for retrieval from Bulk Export. Note that deletion from Bulk Export does not also delete from the Calls resource.

(warning)

Warning

For resources less than 13 months old, deleting calls via the Calls API will also result in them being deleted under the Bulk Export API. Resources older than 13 months can only be deleted via BulkExport API.


Archived Call Resource Properties

archived-call-resource-properties page anchor
Resource properties
datetype: string<DATE>Not PII

The date


sidtype: SID<CA>Not PII

The call sid


urltype: string<URI>Not PII

The absolute URL of the resource.


DELETE https://voice.twilio.com/v1/Archives/{Date}/Calls/{Sid}

(warning)

Warning

NOTE: Archived call deletions are asychronous and performed in batches. You may continue to see a deleted call returned in results for up to one week.

Parameters

delete-parameters page anchor
URI parameters
Datetype: string<DATE>Not PII
Path Parameter

The date of the Call in UTC.


Sidtype: SID<CA>Not PII
Path Parameter

The Twilio-provided Call SID that uniquely identifies the Call resource to delete

Delete a call from Archives

delete-a-call-from-archives page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_10
// Download the helper library from https://www.twilio.com/docs/node/install
_10
// Find your Account SID and Auth Token at twilio.com/console
_10
// and set the environment variables. See http://twil.io/secure
_10
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10
const authToken = process.env.TWILIO_AUTH_TOKEN;
_10
const client = require('twilio')(accountSid, authToken);
_10
_10
client.voice.v1.archivedCalls(new Date(Date.UTC(2008, 0, 2)), '').remove();


Rate this Page: