Docs

Console: retention & purge

Apply your retention periods automatically: delete consent once it has not been in force for a set time, prune old history, and purge erased subjects and ID documents for good.

Configured per site, under Retention & purge. A job (enforce-retention) applies the rules every night. Every rule is independent and a value of 0 turns it off. Consent that is in force is never deleted by any of them — these rules only act on what has ended, been replaced or been erased.

RuleWhat it deletesDefault
Consent no longer in forceA person’s consent for a purpose, with its history and proof, once it has been withdrawn or expired for N daysOff
Superseded historyOlder decisions that a newer one has replaced; the latest decision staysOff
Erased subjectsThe de-identified rows left behind by an erasure request30 days
ID documentsScans uploaded to verify a data-subject request7 days

Use this rule to apply the retention period in your privacy policy — for example “proof of consent is kept for 3 years after the consent ends”. When a person’s latest decision for a purpose has not been in force for the period you set, that consent is deleted.

Delete after (days) is counted from the day the consent stopped being in force: the day it was withdrawn, the day your expiry policy expired it, or the consent’s own expiry date if it carried one. Use 0 to keep everything, or any value from 30 to 3,650 days. The buttons under the field fill in common periods (13 months, 2, 3 and 5 years).

What counts as no longer in force

StateMeaningIncluded by default
WithdrawnThe person took back a consent they had givenYes
ExpiredThe consent reached its expiry date or your expiry policyYes
RefusedThe person said no when askedNo
GrantedThe consent is in forceNever — it can’t be selected

Include Refused only if your policy also limits how long you keep a refusal. Once a refusal is deleted the person counts as never asked, so they will be asked again.

A different period for a purpose

Under Different period for a purpose, pick a purpose and give it its own number of days. It replaces the general period for that purpose only: a shorter one for analytics, a longer one for marketing, or 0 to never delete that purpose. A per-purpose period also works with the general period at 0, if you want the rule for a single purpose.

What is deleted

  • The person’s current state for that purpose and every record of it, including the original grant and its proof (timestamp, IP, statement version).
  • Signed receipts and TC strings, once none of the decisions they cover remain. A receipt that also covers a consent still on file is kept.
  • The person, with their identifiers, when nothing else is left for them: no other consent, no preferences and no open data-subject request.

A person’s other purposes are untouched. Afterwards the deleted purpose reads as its default state, exactly as for someone who was never asked, and the banner or preference center will ask again. Receipts you already downloaded or stored on your side keep verifying offline. No webhook is sent; each run that deletes something writes one retention.inactive_consent_purged entry to the audit log with the counts per purpose and state.

Purposes that are on by default are protected

If a purpose is granted by default — in its own settings or through a regional rule — the only thing switching it off for a person is their opt-out. Deleting that record would switch the purpose back on for them, so this rule never deletes anything for those purposes, whatever periods you set. The screen lists them under the rule.

Check before you save

Count what would be deleted shows how many consents are already past the periods on screen, per purpose, without saving or deleting anything. If you save settings that would delete something on the next run, the console shows that count and asks you to confirm first. When a site turns the rule on with a large backlog, up to 20,000 consents are deleted per night until it is cleared.

Common setups

Your policy saysSet
Proof of consent is kept 3 years after it endsDelete after 1095 days · Withdrawn + Expired
Consent is valid for 2 years, proof is kept 3 moreAn expiry policy of 730 days, plus delete after 1095 days
Analytics 13 months, everything else 3 yearsDelete after 1095 days, plus a period of 395 days for analytics
Refusals are forgotten after 13 months tooAdd Refused to the states that count
Keep one purpose indefinitelyA period of 0 for that purpose
How long proof of consent should be kept depends on your sector and the limitation periods that apply to you. Croombit applies the period you choose; choosing it is your decision as the data controller.

Prune superseded history after (days)

Permanently deletes consent and preference records that have already been superseded (replaced by a newer decision) and are older than the threshold. The latest record for each purpose always stays, whatever its state — use the rule above to remove a consent that has ended. A value of 0 keeps all history indefinitely.

Hard-purge erased subjects after (days)

A DSAR erasure crypto-shreds the identifier’s encryption keys immediately — the subject is unfindable from that moment on. This setting goes one step further: after N days it also removes the remaining de-identified rows (and their receipts / TC strings), closing the ciphertext residue left over from shredding. The hash-chained audit log keeps the proof that it happened. A value of 0 keeps them indefinitely.

Purge uploaded ID documents after (days)

A photo or scan uploaded to verify a data-subject request is deleted this long after upload, whether the request was approved or rejected. It applies at 7 days even if you never open this screen; set 0 only if you have a documented reason to keep them longer.

Every purge on this screen is irreversible and runs automatically at night once the setting is saved. There is no grace period and no way to restore what was deleted.