Erasure
Erase a data subject by destroying their encryption keys, so their content becomes unreadable while sealed hashes and proofs keep verifying.
Sealed segments are locked and cannot be edited, so axonpush does not erase a person by deleting archive objects. It encrypts each event’s content with keys tied to the event’s data subjects, keeps those keys in an external key authority outside the database and the archive, and erases a subject by destroying their keys.
After erasure:
- the subject’s archived content can no longer be decrypted by anyone, including axonpush, even from restored copies or backups;
- their hot rows are scrubbed and expired, so they disappear from reads and exports;
- a tombstone refuses later events that name the subject, including delayed retries;
- segment hashes, the seal chain and inclusion proofs keep verifying, because they cover the encrypted bytes, not the plaintext.
How events are tied to subjects
An event belongs to a subject when:
- its user ID is set. That is subject type
userwith the user ID as the subject ID; - or its
telemetry.subjectsattribute names the subject, for example{ "user": "u_123", "customer": "acme" }. Up to 16 subjects per event.
Each subject has an app-wide key and, when the event has an environment, an environment key. An event’s content key is derived from all of its subjects’ keys, so destroying any one of them makes the event unreadable. Events with no subject use a daily organisation key and cannot be erased by subject. Declare subjects when you send data; see sessions and subjects.
Erase through the API
curl -X DELETE "https://api.axonpush.xyz/telemetry/subjects/user/u_123?appId=$APP_ID" \
-H "X-API-Key: $AXONPUSH_ERASE_KEY"
# {"status":"accepted","erased":500,"more":true}| Parameter | Notes |
|---|---|
subjectType, subjectId | Path. user matches events by user ID as well as by telemetry.subjects. |
appId | Required, unless the API key is bound to an app. The app must exist. |
environmentId | Optional. Omit it to destroy the subject’s app-wide key, which erases the subject in every environment of the app. Set it to destroy only that environment’s key. |
It needs an admin or owner session, or an API key with content:erase. Credentials
limited by scoped access grants cannot erase.
One call scrubs up to 500 matching hot rows. The response says how many it scrubbed
(erased) and whether more remain (more). The first call tombstones the subject,
so the remaining rows are already hidden from reads; call again until more is
false to scrub them. The call is idempotent. Object deletion for scrubbed rows then
completes through the normal retention job.
Erase through a request
For an erasure request from a person, record it on Audit → Requests so the verification and outcome are evidence too.
- Add request with Request kind
erasure, the Subject identifier exactly as it appears in your telemetry, the Basis, Agent and Received at. - Under Fulfillment target, choose the App, optionally an Environment, and
set Declared subject type (for example
userorcustomer). App and subject type are required for erasure. - Verify the requester’s identity and authority through your own process.
- Choose Fulfill verified request, tick that you verified the identity, and give a reason.
The request moves to fulfillment_queued and the erasure runs in the background with
the same checks as the API call, repeating until no rows for the subject remain. The administrator’s role is checked again when it
runs; if they lost access in between, the request fails with
administrator_access_revoked. The request closes when the keys are destroyed and
reconciliation has finished, with the outcome
subject_keys_destroyed_and_physical_reconciliation_complete. Until then it shows
access_revoked_physical_cleanup_pending.
Fulfill verified request is a workflow action: it needs an admin or owner signed
in to the dashboard. API keys are refused, even with requests:manage. A fulfilled
request cannot be edited; create a new request for a different subject or scope.
Legal holds block all erasure
One active hold refuses every erasure
While any legal hold is active anywhere in the organisation, every subject erasure
is refused with 409, whatever the hold’s agent or time range. This is intended: a
subject’s keys can protect events across several agents, and axonpush does not guess
which erasures a hold can tolerate. Release holds you no longer need before handling
erasure requests, or record the request and fulfil it after the hold is released.
Fulfilling a verified erasure request while a hold is active is refused at once with
409 an active legal hold blocks erasure, and the request is not queued. Check
Legal holds on Audit → Retention first. The erasure itself checks again when
it runs, so a hold placed after the request was queued still stops it.
What erasure does not do
- It does not delete sealed objects. They stay locked until their retention date and then expire normally. Only the ability to decrypt them is gone.
- It does not hide that an event existed. Proofs, counts and seal hashes still show that a record was sealed at that time.
- It does not reach events without a declared subject. Those use a daily key.
- It does not reach copies outside axonpush, such as exports or evidence packs you already downloaded.
Erasure and restored backups
Keys are destroyed in the key authority, not in the database, so restoring an older database cannot bring an erased subject back. After each erasure, and whenever axonpush notices a restored database, a reconciliation job removes hot rows that belong to erased subjects. See Restore and archive jobs.
None of this is legal advice. Whether key destruction meets an erasure duty that applies to you is a question for your own counsel.
API reference: telemetry.erase,
auditProduct.requests.fulfill.
Restore and archive jobs
Restore cold segments, read archived content, follow verification and hold jobs, and retry, recover or reconcile them.
Recording evidence
Report task boundaries, human decisions, policy denials and notices from your agents as ordinary events, and read an agent's declared policy at runtime.