Delete all call data
curl --request DELETE \
--url https://api.nixflex.com/v1/callsimport requests
url = "https://api.nixflex.com/v1/calls"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.nixflex.com/v1/calls', 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",
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"
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")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nixflex.com/v1/calls")
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 all call data
DELETE /v1/calls
DELETE
/
v1
/
calls
Delete all call data
curl --request DELETE \
--url https://api.nixflex.com/v1/callsimport requests
url = "https://api.nixflex.com/v1/calls"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.nixflex.com/v1/calls', 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",
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"
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")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nixflex.com/v1/calls")
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 every call on your API key - all call records, transcripts, analysis, recording files, and SMS messages. Intended for bulk erasure requests, offboarding a client, or clearing test data before going live.
Or with the SDK:
The same action is available in the dashboard under Settings → Delete call data.
Calls are deleted in batches, so a large history takes a few seconds. The response is returned once everything is gone.
Request
curl -X DELETE https://api.nixflex.com/v1/calls \
-H "Authorization: Bearer KEY_ID:KEY_SECRET"
await client.calls.deleteAll();
Response
200 OK:
{
"deleted": true,
"calls_deleted": 412,
"recordings_deleted": 389,
"sms_deleted": 27
}
| Field | Type | Notes |
|---|---|---|
calls_deleted | number | Call records removed. |
recordings_deleted | number | Recording files removed from storage. Lower than calls_deleted when some calls had no recording. |
sms_deleted | number | SMS messages removed. |
Not reversible
This erases your entire call history in one request. There is no undo, no confirmation step, and no recovery window - export anything you need first with List calls. Database backups do not restore deleted recordings.
What this does NOT do
- Your agents, phone numbers, and API keys are untouched - the platform keeps working exactly as before, with an empty history.
- Billing and invoices are unaffected. Past usage stays on your invoices; billing records are retained for tax purposes.
- To close the account itself, use account deletion in the dashboard, which purges this data and then removes your login.