Skip to main content
Goal. Delete an agent’s, a project’s, or a node’s data for a compliance request (e.g. GDPR erasure) and come away with a certificate proving it happened. Prerequisites.
  • An operator session with admin authority — erasure is an /admin/api control-plane operation, not a data-plane call. An erase Agent scope is ServiceAdmin-only; a ProjectAdmin may erase within its own tenant. See the admin control plane.

The safety envelope

Erasure is irreversible, so it carries a typed confirmation: the confirm field must exactly equal the scope’s canonical label — agent:<id>, project:<id>, or node:<uuid>. A mismatch destroys nothing and still writes a Denied audit of the attempt. Always dry-run first.

Steps

1

Dry-run to see the blast radius

dry_run: true returns the would-remove counts without deleting anything:
2

Run it for real

Flip dry_run to false. The response is the erasure certificate — the per-tier removal counts (nodes_removed, diffs_removed, deliveries_removed, sessions_removed, tombstones_propagated, …) plus a digest:
3

Keep the receipt

Store the returned certificate. The erase also writes an Erase row to the tamper-evident audit log, so you have two independent records that the deletion occurred.
To remove a single memory rather than a whole scope, use POST /admin/api/nodes/{id}/delete — a tombstone-first, idempotent delete that propagates the removal through the mesh. See data lifecycle.

See also