Delete Persona
curl --request DELETE \
--url https://api.lemlist.com/api/database/personas/{personaId} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/database/personas/{personaId}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lemlist.com/api/database/personas/{personaId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api.lemlist.com/api/database/personas/{personaId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/database/personas/{personaId}",
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: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"_id": "pdp_ExAmPlE1234567890a",
"deleted": true
}
}{
"error": "Wrong param people database persona id",
"code": "WRONG_PARAM_PEOPLE_DATABASE_PERSONA_ID"
}{
"error": "Route unauthorized",
"code": "ROUTE_UNAUTHORIZED"
}{
"error": "Beta is not enabled",
"code": "BETA_NOT_ENABLED"
}{
"error": "No editable persona found for this id and team (it may not exist or be the system persona)",
"code": "PEOPLE_DATABASE_PERSONA_NOT_FOUND"
}{
"error": "Internal error",
"code": "INTERNAL_ERROR"
}People database
Delete Persona
Deletes a People Database persona.
DELETE
/
database
/
personas
/
{personaId}
Delete Persona
curl --request DELETE \
--url https://api.lemlist.com/api/database/personas/{personaId} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/database/personas/{personaId}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lemlist.com/api/database/personas/{personaId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api.lemlist.com/api/database/personas/{personaId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/database/personas/{personaId}",
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: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"_id": "pdp_ExAmPlE1234567890a",
"deleted": true
}
}{
"error": "Wrong param people database persona id",
"code": "WRONG_PARAM_PEOPLE_DATABASE_PERSONA_ID"
}{
"error": "Route unauthorized",
"code": "ROUTE_UNAUTHORIZED"
}{
"error": "Beta is not enabled",
"code": "BETA_NOT_ENABLED"
}{
"error": "No editable persona found for this id and team (it may not exist or be the system persona)",
"code": "PEOPLE_DATABASE_PERSONA_NOT_FOUND"
}{
"error": "Internal error",
"code": "INTERNAL_ERROR"
}Pass the
personaId as a path parameter. Deletion is permanent — there is no undo.An unknown id, a persona belonging to another team, and the persona lemlist auto-generates from your AI business context all answer the same 404: they are indistinguishable by design.This endpoint is in closed beta. It answers
403 with the code BETA_NOT_ENABLED unless the personas beta is enabled for your team.Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
Id of the persona to delete
Minimum string length:
1Response
Persona deleted
Show child attributes
Show child attributes
Was this page helpful?
⌘I