Skip to main content
DELETE
Python

Authorizations

Authorization
string
header
required

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

Path Parameters

memory_id
string<uuid>
required

The unique identifier of the memory to delete.

Query Parameters

delete_linked
boolean
default:false

If true, also delete memories linked to this one. The response then includes a cascade_count field with the number of linked memories deleted.

Response

Successful deletion of memory.

message
string
Example:

"Memory deleted successfully!"

cascade_count
integer

Number of linked memories also deleted. Only present when delete_linked=true was passed.