Skip to Content
Calls

Purge a call's content

Permissioncalls:deleteAuthentication
DELETE
/calls/{id}

Idempotently removes call content and queues durable deletion of recording, SIP-PCAP, and turn-audio blobs. The call must be ended, outside all post-call processing fences, and not under legal hold. A 202 means object cleanup remains pending; the response and subsequent GET expose pollable cleanup counts.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Response Body

Purge complete, already complete, or no external objects required deletion.

application/json
  1. response
id*string
Formatuuid
object*string
status*string
Value in"purged""purging""already_purged"
deleted*boolean

True only when this request performed the database purge.

purged_at*string
Formatdate-time
updated_at*string
Formatdate-time
cleanup*
records_deleted*
Example Request
curl -X DELETE 'https://api.kejue.co/v1/calls/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "call",  "status": "purged",  "deleted": true,  "purged_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "cleanup": {    "status": "not_required",    "total": 0,    "deleted": 0,    "pending": 0  },  "records_deleted": {    "property1": 0,    "property2": 0  }}