DELETE
/
v1
/
entities
/
{entity_type}
/
{entity_id}
import requests

url = "https://api.mem0.ai/v1/entities/{entity_type}/{entity_id}/"

headers = {"Authorization": "<api-key>"}

response = requests.request("DELETE", url, headers=headers)

print(response.text)
{
  "message": "Entity deleted successfully!"
}

Authorizations

Authorization
string
header
required

API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'

Path Parameters

entity_type
enum<string>
required

The type of the entity (user, agent, app, or run)

Available options:
user,
agent,
app,
run
entity_id
string
required

The unique identifier of the entity

Response

204
application/json
Entity deleted successfully!
message
string