DELETE · Delete memory

Hard-delete a single memory. Idempotent — 204 either way.

DELETE /api/memories/:id

Hard-delete a single memory. Fires memory.deleted webhook. Idempotent — deleting a missing id still returns 204.

curl -X DELETE https://www.mnueron.com/api/memories/01HQB9R3MV… \
  -H "Authorization: Bearer $MNUERON_API_TOKEN"

Response

204 No Content

What gets removed

  • The memory row
  • memory_entities edges (CASCADE)
  • memory_recalls rows (CASCADE)
  • memory_feedback rows (CASCADE)

Entities, relations, and exports are not touched.

Bulk delete

To delete many at once, use DELETE /api/memories/batch with an ids[] array.

Audit trail

A memory.delete row is written to audit_log with the deleting user + token + memory id. You can fetch it via GET /api/events — the deleted memory's id appears under target_id even though the memory itself is gone.

Last updated 2026-05-24edit