Skip to content
PlatformMarkdown

Retention and clean-up

What the realm clears on its own as it expires, what it keeps for the life of the realm, and what happens to a deleted realm's data.

Available

The realm clears what has run its course without anyone asking: ended sessions, lapsed lockouts, spent one-time codes and expired shares. It keeps what is a record: your objects, until you delete them, and the audit trail, for as long as the realm exists. This page says which is which, so you can answer an auditor’s how long do you keep it?

Nothing to set: clean-up runs in every active realm, and no setting changes what is kept. To have a deleted realm purged, you need to have deleted it, as an administrator of its parent; see Realms and sub-realms.

Every five minutes, the realm clears what has expired in each active realm:

What is clearedWhen
SessionsOnce signed out, or past their maximum lifetime or idle window. An idled-out session is revoked as it goes
LockoutsOnce both the counting window and the lockout itself have lapsed
One-time codes, revocations, unfinished sign-ins, recorded credential changesOnce past their expiry
One-time shares of secretsOnce past their expiry

Everything else stays until it is deleted:

What is keptFor how long
Users, groups, apps, policies and settingsUntil you delete them
The audit trailFor the life of the realm. Nothing expires it
A deleted realm’s data and keysUntil the realm is purged, which happens only when you ask
A deleted realm’s audit trailUntil the realm is purged, and after it unless you ask for the trail to go too

Deleting a realm takes it out of service and frees its host names; it doesn’t erase it, and it can’t be brought back. Its data and keys are kept, unreadable to anyone, until Cvyūh purges the realm. Nothing purges a realm on a timer: ask your Cvyūh support contact, naming the realm. A purge destroys the realm’s records and keys together, and every realm beneath it first.

By default a purge keeps the realm’s audit trail, so what happened in the realm can still be answered for. Ask for the audit trail to be purged too if you want nothing kept.

WhatDefaultCan it change
How often expired records are clearedEvery five minutesNo
How long the audit trail is keptThe life of the realmNo
How long a deleted realm is kept before purgeUntil you askAsk for a purge at any time
A purge’s audit trailKeptAsk for it to be purged too
  • An expired session still shows in a list. Expiry is enforced at once, and the record is cleared within about five minutes. It gives no access meanwhile.
  • A suspended realm’s expired records aren’t cleared. Only active realms are cleared. They’re cleared once it’s active again, and give no access meanwhile.

Clean-up of expired sessions writes a SESSIONS_REAPED record; see What is recorded. A realm’s deletion is recorded as DELETED; see Realms and sub-realms.

  • No setting shortens the audit trail yet. Every record is kept, and no call edits or deletes one. A retention period you set is planned: see What’s next for audit and reports.
  • No backups yet. A realm served from more than one site is kept whole at each, but nothing keeps a copy you can restore to a moment before a change. See Backups.
  • Backups: point-in-time copies of a realm’s data you can restore from.