Skip to main content
DELETE
FIXED · account DELETE /v1/calls covers the owning account’s calls and related recordings. It takes no number or campaign filter. Its result reports sms_deleted=0. NOT OFFERED → do this instead · number There is no bulk erase for just one customer’s number in a shared account. Resolve and verify each tenant-owned call ID, then use single-call deletion. YOU CAN CHANGE · agent New agents inherit account retention on creation. Use the agent update to change its saved call-retention policy. SCOPE · call Read availability first. Stored links expire. Distinguish pending, expired, unavailable and customer storage. Read the compact AI rules Deleting one call hangs it up first if it is still running, then removes its content.
Method: DELETE ·
Success: 200 ·
Permission: Owner or Admin
The important part
  • Running calls are hung up before content deletion.
  • A queued hang-up is not a completed delete; the same request safely resumes it.
  • Used charges remain. Customer-managed copies have their own lifecycle.

Authentication

Use the owning account’s server-side credential in Authorization: Bearer KEY_ID:KEY_SECRET. An organisation API key has Owner authority. Personal dashboard sessions need Owner or Admin authority; Members receive 403.

Request fields

Do not send a request body. Review the ID and effect before sending; completed content removal cannot be undone. Deleting one call hangs it up first if it is still running, then removes its content. An Owner or Admin can delete; a Member cannot. A confirmed content deletion can still have queued recording cleanup. Nixflex recording cleanup does not certify carrier erasure or remove customer-managed copies. Used charges and required financial records remain, with no refund.

Response fields

HTTP 200 confirms content deletion. It does not erase billing or every external copy.

Example request

This request changes the selected resource. Set NIXFLEX_API_KEY privately for the same account and host; use an owned identifier. The examples send once. The SDK/CLI tabs use the exact supported clients. Configure NIXFLEX_API_KEY and NXF_CALL_ID privately. Raw HTTP base URL: https://api.nixflex.com/v1. Node and Python SDK base URL: https://api.nixflex.com. The SDK adds /v1. Configure MCP with the same origin and account. SDKs preserve the known queued error; other uncertain errors use outcome_unknown with the server code in details.original_code.

Example response

Errors

The 503 flags are inside error.details, not at the response root. hangup_pending includes deleted:false and retry_pending:true; deletion_unavailable includes deleted:false without promising that a queue exists.

Retry and idempotency

If hang-up is not confirmed, HTTP 503 hangup_pending returns error.details.deleted:false and error.details.retry_pending:true. Deletion stays queued and continues automatically. Repeating the same DELETE for the same account and ID safely resumes it. A lost response or deletion_unavailable is not success: check the list, then repeat that same DELETE if needed. Missing and foreign IDs share HTTP 404. Bulk call deletion and account closure keep separate safety rules. Use bounded reads to refresh the list. Do not treat the generic write-retry rule for call creation or SMS sending as the deletion rule: this same-ID DELETE can be repeated deliberately to resume cleanup. It does not require an Idempotency-Key header.

Authorizations

Authorization
string
header
required

KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A verified personal dashboard Bearer session may be used where the operation documents role-based access.

Path Parameters

id
string
required

Owned call identifier. Missing and foreign IDs have the same 404.

Required string length: 1 - 200

Response

Call content deleted. Recording cleanup has its own explicit state.

call_id
string
required

The owned call ID from the request.

deleted
boolean
required

The call content has been removed from customer views after confirmed hang-up.

recording_deleted
boolean
required

True only when the Nixflex recording copy is confirmed absent. This is not proof of carrier or customer-storage erasure.

recording_cleanup
enum<string>
required

queued means Nixflex-copy cleanup is still tracked. carrier_best_effort means that copy is confirmed absent; carrier cleanup remains best effort.

Available options:
carrier_best_effort,
queued