Skip to contentSkip to navigationSkip to topbar
Rate this page:
On 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

Property nameTypePIIDescription
datestring<date>
Not PII

The date


sidSID<CA>

The call sid

Pattern: ^CA[0-9a-fA-F]{32}$Min length: 34Max length: 34

urlstring<uri>

The absolute URL of the resource.


Delete an Archived Call

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

(warning)

Warning

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

Path parameters

Property nameTypeRequiredPIIDescription
Datestring<date>required

The date of the Call in UTC.


SidSID<CA>required

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

Pattern: ^CA[0-9a-fA-F]{32}$Min length: 34Max length: 34

Delete a call from Archives

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_16
// Download the helper library from https://www.twilio.com/docs/node/install
_16
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_16
_16
// Find your Account SID and Auth Token at twilio.com/console
_16
// and set the environment variables. See http://twil.io/secure
_16
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_16
const authToken = process.env.TWILIO_AUTH_TOKEN;
_16
const client = twilio(accountSid, authToken);
_16
_16
async function deleteArchivedCall() {
_16
await client.voice.v1
_16
.archivedCalls("2009-07-06", "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
_16
.remove();
_16
}
_16
_16
deleteArchivedCall();


Rate this page: