Docs / Administration

Erasure and retention

Erase personal data, inspect the result, and understand retention and external copies.

Overview

Erasure permanently removes a person’s personal data. It supports deletion requests under the GDPR and similar laws. Unlike merges and other reversible changes, erasure has no undo.

Datum retains empty member and account records, links, and audit history. Activity records retain the source and time of an event. Erasure removes identifying values while preserving the record of system actions.

Erase a person

Owners can erase a person from their member page. The operation first previews the exact member and the duplicate source accounts and historical member records it covers. Previewing changes nothing.

  1. Preview the person

    1. Open the member page of the person.
    2. Choose Erase personal data… from the actions menu.
    3. Check the account count and the historical-member count.

    Erasure can include a different record of the same source account. It does not erase unrelated people who only share an email address.

  2. Confirm the scope

    1. Type the member ID that the dialog shows.
    2. Enter a request or ticket reference as the reason. Do not put personal details in the reason.
    3. Check the scope.
    4. Select Permanently erase personal data.

    If the accounts or the historical membership changed after the preview, refresh the preview. Then check it again.

  3. Check the result

    The app returns to Members after success. Run ocmgr audit list --action member.redacted --json to inspect the audit entry. Verify downstream destinations separately: a recorded erasure event is not proof that every destination has delivered it.

    If erasure fails partway, the member still counts as erased but cleanup may be incomplete. Preview the member again by ID. The preview reports alreadyErased and its own scope version. When you confirm this preview, Datum finishes the blocking keys, labels and review evidence. It also tells downstream destinations. Retrying DELETE /community/v1/user/{email} cannot do this, because the address is already gone and the request returns 404.

API, CLI and MCP

Administrators can use the same guarded procedure from the CLI, MCP and REST:

ocmgr members redact MEMBER_ID --json
# Read the preview; copy its canonical memberId and scopeVersion only after approval.
ocmgr members redact MEMBER_ID --confirm --scope-version SCOPE_VERSION \
  --reason REQUEST_REFERENCE --json

--dry-run always previews, even with --confirm. MCP uses redact_member with member_id; REST uses POST /v1/members/{id}/erase. For a preview, do not send confirm, or set it to false. To erase, send confirm: true, the scope_version of the preview and a non-personal reason.Both steps need admin authority and an enabled write runtime. The scope version prevents erasure during a parallel change to the graph. It is not a credential.

The compatibility DELETE /community/v1/user/{email} route remains available with an Admin API key. It immediately erases every member matching that address without this preview flow. Prefer the member-ID flow when selecting one person.

Erasure also deletes the stored profile photos of each erased account. Later background downloads cannot bring them back.

Datum deletes the logo of an organization when the organization no longer qualifies for one. This can occur before the organization dissolves. A logo needs two community members, or one for a GitHub organization. Otherwise, the logo stays. Datum cannot get back copies that a browser already downloaded or stored. A browser can keep image responses for 24 hours.

What erasure removes and keeps

Removed data Retained records
Source values, including names, handles, emails, bios, companies, and avatars Member and account IDs
The combined profile Account links and their creators
Activity contents, source-defined types, and references Event source and time
Personal tags, segment memberships, and custom values Tag, segment, and field definitions
Notes about the person and review evidence that identifies them Audit history without identifying reasons
Enrichment results, tone labels, presence details, and CRM facts Receipts of those records
Raw webhook payloads attributable to the person Delivery arrival records

Empty account records prevent later imports from recreating the same source account. A returning person with a new source account creates a new member.

Retained account IDs are the IDs the source gave each account, such as id:user-123 for a push source. If a source uses an email address as the account ID, Datum masks it. A source that uses a handle as its ID leaves that handle in the retained record.

The erased member’s page

The member’s page still opens by its ID. It’s titled Erased member and says “Personal data erased” with the date. It offers only Copy id: you can’t add notes, tags, or segments, send the person anywhere, merge them, or erase them again. Its Identity panel counts the kept accounts without showing their IDs.

Erase external copies

Copies outside Datum need separate removal:

  • Sinks: Datum sends redaction to every sink that previously exported the person. This includes disabled and archived sinks.
  • Event destinations: Datum sends member.redacted. Subscribers must erase their copies. A disabled destination receives nothing, so erase its copies by hand.
  • Exports: Datum cannot recall downloaded files.
  • Backups: older backups retain the data until expiry. Restoring them can restore erased personal data.

Reapply erasures before opening a restored database for use. Follow the procedure in the self-hosting runbook.

Erasure remains available during hosted payment restrictions and usage caps.

Retention

Most community records have no expiry. Erasure clears their personal values. Some operational records expire automatically.

Record Retention
Members, accounts, activity, links, and audit history No expiry; erasure clears personal values.
Message text The graph never stores it.
Webhook intake records 30 days; erasure clears attributable payloads sooner.
Delivery logs under the events profile 30 days.
Notes sent with a member, activity or organization to an agent subscription 7 days. Erasing a member deletes notes sent with that member sooner. Member erasure does not delete notes sent with an organization, even if they name the person. For those notes, Datum removes email addresses and deletes the notes after 7 days. See Send to an agent.
MCP or REST exports 24 hours by default.
Staged Common Room migration pages 30 days.
Abandoned source sign-in attempts 30 days after expiry.
Usage counts 25 months, without personal data.
Local backups The latest 14 nightly and 24 hourly dumps.
Bucket backups The bucket’s lifecycle policy determines retention. See Backups and restore.

The intake log retains the original transport payload. A forum webhook can therefore include post text in that log. The text never enters member records. Payloads expire after 30 days, or sooner through erasure.

For standard JSON push batches, erasure removes the person’s user and activity records. Other people’s records remain available for replay. If Datum cannot safely identify separate records in a delivery, it clears the full delivery. Datum cannot replay a delivery after it clears its payload. See Webhooks and push.

FAQ

Can I erase someone by member id instead of email?

Yes. Use the member page, ocmgr members redact, the redact_member MCP tool, or POST /v1/members/{id}/erase. Each previews by member ID before explicit confirmation.

Does erasing a person split their accounts apart?

No. Links remain. Erasure removes personal values without separating the accounts.

Datum clears a failed standard push when its user ID or activity actor ID exactly matches an erased account on the same connection. Malformed payloads and custom mappings that Datum cannot connect to a person expire after 30 days. A name alone does not connect a record to a person.