Skip to main content
DELETE
/
v1
/
personas
/
{persona_id}
Delete Persona
curl --request DELETE \
  --url https://api.bland.ai/v1/personas/{persona_id} \
  --header 'authorization: <authorization>'
import requests

url = "https://api.bland.ai/v1/personas/{persona_id}"

headers = {"authorization": "<authorization>"}

response = requests.delete(url, headers=headers)

print(response.text)
const options = {method: 'DELETE', headers: {authorization: '<authorization>'}};

fetch('https://api.bland.ai/v1/personas/{persona_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.bland.ai/v1/personas/{persona_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>"
],
]);

$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.bland.ai/v1/personas/{persona_id}"

req, _ := http.NewRequest("DELETE", url, nil)

req.Header.Add("authorization", "<authorization>")

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.bland.ai/v1/personas/{persona_id}")
.header("authorization", "<authorization>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.bland.ai/v1/personas/{persona_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["authorization"] = '<authorization>'

response = http.request(request)
puts response.read_body
{
  "data": {
    "success": true,
    "message": "Persona deleted successfully"
  },
  "errors": null
}
{
  "data": null,
  "errors": [
    {
      "error": "PERSONA_IN_USE",
      "message": "Cannot delete persona that is currently in use by phone numbers",
      "details": {
        "persona_id": "12345678-1234-1234-1234-123456789012",
        "phone_numbers_using": [
          "+15551234567",
          "+15551234568"
        ],
        "suggestion": "Remove persona from all phone numbers first, or use force=true parameter"
      }
    }
  ]
}
{
  "data": null,
  "errors": [
    {
      "error": "PERSONA_NOT_FOUND",
      "message": "Persona not found",
      "details": {
        "persona_id": "12345678-1234-1234-1234-123456789012"
      }
    }
  ]
}
Deleting a persona will remove all versions and configuration data permanently. Any phone numbers currently using this persona will need to be reconfigured with a different persona or direct configuration.

Headers

authorization
string
required
Your API key for authentication.

Path Parameters

persona_id
string
required
The unique identifier of the persona to delete.

Query Parameters

force
boolean
default:"false"
Force deletion even if persona is currently in use by phone numbers. When false, deletion will fail if persona is actively being used.

Response

data
object
The deletion result object.
errors
string
Any errors that occurred (null if none).
{
  "data": {
    "success": true,
    "message": "Persona deleted successfully"
  },
  "errors": null
}
{
  "data": null,
  "errors": [
    {
      "error": "PERSONA_IN_USE",
      "message": "Cannot delete persona that is currently in use by phone numbers",
      "details": {
        "persona_id": "12345678-1234-1234-1234-123456789012",
        "phone_numbers_using": [
          "+15551234567",
          "+15551234568"
        ],
        "suggestion": "Remove persona from all phone numbers first, or use force=true parameter"
      }
    }
  ]
}
{
  "data": null,
  "errors": [
    {
      "error": "PERSONA_NOT_FOUND",
      "message": "Persona not found",
      "details": {
        "persona_id": "12345678-1234-1234-1234-123456789012"
      }
    }
  ]
}

Docs for agents: llms.txt