memories

DELETE /v1/memories/{memory_id}/

Changed on

Delete a memory.

Request

  • Base URL
    https://api.mem0.ai
  • URL
    https://api.mem0.ai/v1/memories/{memory_id}/
  • Auth
    API key in header Authorization

Path parameters

memory_idstring uuid required

The unique identifier of the memory to delete.

Query parameters

delete_linkedboolean

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.

messagestring
cascade_countinteger

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

Example response

{
  "message": "Memory deleted successfully!"
}

Changes

    • breaking

      removed the success response with the status

    • info

      added the new optional query request parameter delete_linked

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status