API reference · Memory

Delete a memory

DELETE/v1/memory/{id}

Delete one memory permanently.

Open Memtro

Deletes one memory permanently: there is no undo and no soft delete. Your own personal memories can always be deleted; shared memory needs the delete-memory permission.

Example

Against https://platform.memtro.com, with your key in MEMTRO_API_KEY.

curl -X DELETE https://platform.memtro.com/v1/memory/6f1c… \
  -H "Authorization: Bearer $MEMTRO_API_KEY"

The response.

{ "object": "memory.deleted", "id": "6f1c…", "deleted": true }

Authentication

An API key, as Authorization: Bearer or x-api-key. Read-only keys are refused before the lookup.

  • Every reply, errors included, carries x-request-id and request-id headers with the same id, starting req-. Quote it to support.
  • Browsers may call it from any origin: it answers CORS preflights and allows the Authorization, x-api-key and Anthropic version headers.

Path parameters

idstringRequired

The memory's id.

Response

200application/json

Confirmation.

object"memory.deleted"Optional

Always memory.deleted.

idstringOptional

The id deleted.

deletedtrueOptional

Always true.

Errors

In the OpenAI envelope, {"error": {"message", "type", "param", "code"}}. What each code means and what to do about it is in the error catalogue.

StatusCodeWhen
401invalid_api_key

The key is missing, malformed, revoked or expired.

402subscription_inactive

The organisation has no active subscription.

403read_only_key

The key was issued read only.

403insufficient_permission

A shared memory, and the key's holder lacks the delete-memory permission.

404not_found

No such memory, or not one this key can read.

Where agents remember your company

Sign in, add a provider key, create an API key and point your tools at Memtro. It takes about five minutes.

7-day free trial · card on file, nothing charged until it ends · cancel any time