Skip to main content

Erase a person's history

Erase history on App users deletes what Prism recorded as one person's while their address was theirs alone: their questions and answers, feedback and its files, saved prompts, private dashboards and conversation pointers. Use it when someone who has left asks for their data to be erased, or your policy requires it.

How it knows a row is theirs depends on how people sign in:

  • A sign-in proxy that gives an id that is never reused (an Entra object id, or an account number): the rows recorded under that id.
  • Email sign-in: the rows their own signed-in requests wrote. From this release, Prism records on each row which App users row's sign-in wrote it. Rows written before this release, or by a sign-in made before it, carry no such record, and Erase does not reach them (see What it reaches).
  • A sign-in proxy that gives a username, or any id that can be given to someone else: Erase is refused (see When Erase is unavailable).

It cannot be undone. It deletes only what Prism can show was that person's, and it says what it did not reach.

Before you start​

  • Deactivate the person first on App users, and stop them signing in at your identity provider. Erase is offered only on a deactivated row, and only some minutes after Deactivate (the page says from when), so that a question they asked just before has finished.
  • Tell Prism when an address changes hands. Prism knows an address passed to someone else only when a row is removed or reset, or its address or sign-in is changed. If your mail system gives a departed person's address to someone new, reset or remove their row before the new person signs in. Otherwise Prism treats them as one person.
  • Do not remove the row first. Erase starts from the person's row on App users. Erase reaches only what was recorded while that row existed. Under a sign-in proxy, remove deletes the row and none of the person's history. The person's saved prompts, questions and private dashboards stay, and an Erase from a row added later does not reach them. So deactivate the row and erase from it.
  • Erase before you reset. After reset for a new person, the row belongs to the next holder of the address, and Erase works on that holder, not the person who left.
  • Revoke their Router keys separately. Erase does not revoke them. Use revoke Router keys on the row.
  • Delete the agent runner's copies separately. Erase does not reach them. Use Delete runner conversations on App users (see When someone leaves in Installing).

Steps​

  1. On App users, find the person's row. It shows as deactivated.
  2. Click erase history. Prism shows what it will delete, by kind, and what it will not reach, with why.
  3. Read it. To go on, type the person's address exactly, and confirm.
  4. The page says what was deleted. The audit log records it as user_erased, with counts only.

What it reaches, and what it does not​

Erase reaches what was recorded under the row's sign-in id, or written by the row's own email sign-in, while Prism's records show the address was theirs alone. That period starts at the latest of these: a few minutes after the row was added; when Prism started keeping a record of who held each address (from 1.0.0-beta9); and a few minutes after any time the address may have changed hands. Changes of hands are: a row removed or reset, a sign-in linked, unlinked, moved or replaced, the address changed, or a row reactivated. The period ends when the row was deactivated.

Under email sign-in, the period is measured by when the sign-in that wrote a row began, not when the row was written, and it has no wait after the row was added or after a change of hands. A sign-in begun before a change of hands is never counted, however long it went on. A question they asked just before Deactivate, whose answer was saved just after, is still reached.

It does not erase, and the page gives the count of each, with why:

  • anything recorded under their sign-in id, or by their sign-in, outside that period;
  • anything filed under their address that carries no record of which sign-in wrote it: everything written before this release or by a sign-in made before it, anything written under a sign-in proxy, and anything written about them by someone else. Prism cannot tell this from an earlier or later holder's, so it keeps it. app.retentionDays prunes it with everyone's (see Disk);
  • anything filed under their address by another App users row's sign-in, an earlier or later holder of the address;
  • anything under an earlier sign-in id the row kept from a change of sign-in method;
  • the agent runner's copies of their conversations. The runner can keep more than one holder of an address together, so Erase cannot tell this person's from an earlier holder's;
  • their name or details inside other people's questions and answers;
  • the audit log, which keeps its own history under its own retention;
  • log lines and database backups;
  • their Router keys;
  • the address-to-login pairs harvested from their commits and profile. Use Erase identity evidence on App users: see Erasing one person's evidence.

The row itself is kept, deactivated, marked as erased. Under a sign-in proxy it is what keeps them out.

When Erase is unavailable​

Erase refuses, saying why, when it cannot show whose history is whose:

  • More than one App users row has the address, differing only in case. Remove the extra row first.
  • The person signs in through a sign-in proxy that gives Prism no id that can't be reused: one whose id is not an Entra object id or an account number (a username, say). A username can pass to someone else, and those rows carry no record of which sign-in wrote them. What you can do instead:
    • set app.retentionDays, which prunes everyone's questions, answers, feedback and telemetry older than that many days (see Disk);
    • for the agent runner's copies, use Delete runner conversations, which has its own refusals (see When someone leaves in Installing).
  • Another App users row's sign-in id, now or earlier, is this address. Its rows under that id cannot be told from this person's.
  • Prism's record of who held each address is missing, switched off, or missed a change. Restart Prism. An erase after the restart reaches only what is recorded from then.
  • A database role can change App users but cannot write that record. The page names the role. Grant it INSERT on auth_user_handovers, UPDATE on auth_user_handovers_since and USAGE on their sequences, or revoke its INSERT, UPDATE and DELETE on auth_users.

After a restore​

A restore brings back Prism's record of who held each address as it was when the backup was taken. An erase after a restore reaches only what was recorded since then. See Back up and restore.