Delete call
curl --request DELETE \
--url https://api.nixflex.com/v1/calls/{call_id}import requests
url = "https://api.nixflex.com/v1/calls/{call_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.nixflex.com/v1/calls/{call_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nixflex.com/v1/calls/{call_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nixflex.com/v1/calls/{call_id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.nixflex.com/v1/calls/{call_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nixflex.com/v1/calls/{call_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyCalls
Delete call
DELETE /v1/calls/:callId
DELETE
/
v1
/
calls
/
{call_id}
Delete call
curl --request DELETE \
--url https://api.nixflex.com/v1/calls/{call_id}import requests
url = "https://api.nixflex.com/v1/calls/{call_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.nixflex.com/v1/calls/{call_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nixflex.com/v1/calls/{call_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nixflex.com/v1/calls/{call_id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.nixflex.com/v1/calls/{call_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nixflex.com/v1/calls/{call_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyPermanently erases a single call: the call record, its transcript and analysis, and the recording file itself. Use this to satisfy an individual erasure request (“delete my data”) without waiting for the 90-day retention window.
Or with the SDK:
Only calls made with your own API key can be deleted; another account’s call ID returns the same
Request
curl -X DELETE https://api.nixflex.com/v1/calls/CA1b5c0bfad4b56635b773938f16db2db7 \
-H "Authorization: Bearer KEY_ID:KEY_SECRET"
await client.calls.delete('CA1b5c0bfad4b56635b773938f16db2db7');
Response
200 OK:
{
"call_id": "CA1b5c0bfad4b56635b773938f16db2db7",
"deleted": true,
"recording_deleted": true
}
recording_deleted is false when the call had no recording (recording disabled, or the call ended before audio was saved) - the call record is still deleted.
Errors
| Status | Code | Meaning |
|---|---|---|
| 404 | not_found | No call with that ID on your account. Also returned for a call you have already deleted. |
404.
Not reversible
There is no undo and no recovery window. The transcript and the recording are removed immediately - if you need a copy, fetch it with Get call before deleting. Database backups do not restore deleted recordings.
What this does NOT do
- Billing is unaffected. The call’s usage remains on your invoice - a delivered call is still a billed call, and billing records are retained for tax purposes.
- Webhook delivery logs for the call are not removed.