Skip to content

Feature: Data retention ​

Registry holds names, dates of birth and the movements of minors. Keeping that indefinitely is not caution, it is a risk. So every night, five sweeps ask the same question — is there anything here older than what we agreed to keep? — and delete what is stale.

Who it is for: no one, in the usual sense. It is the only feature whose operator is a scheduled job rather than a person. The nightly runs are triggered by a scheduler inside the application; the same sweeps can also be run by hand.

Who can do what ​

RoleCan doLimits
The scheduler (internal)Runs the five sweeps every nightReal purges, configured threshold
The service accountTriggers any of the five sweeps on demandThe account exists only for this
USER_ADMINISTRATORThe same, since it holds the job permissionUseful to run a dry run on demand
Everyone elseNothing—

Purging is a global operation. It is the only thing in Registry that crosses all projects at once, and that is precisely why it sits behind a permission no one holds by accident.

Five sweeps, in a deliberate order ​

SweepDeletesDefault scheduleDefault threshold
UsersAccounts with no sign-in since the threshold01:00 every day12 months
ProjectsProjects not modified since the threshold01:30 every day12 months
Project contentMovements, communications and alerts02:00 every day12 months
Project configurationVehicles, activities, participants, then groups that became empty02:30 every day12 months
AuditEvents of the audit log03:00 every day12 months

The half-hour gaps are not decorative — the order matters:

The audit is purged last, because it itself contains personal data (IP addresses) and must cover the night's purges.

Content is purged before configuration, because participants, vehicles and activities all refuse to be deleted while a movement references them. Delete the movements first and the configuration becomes deletable; do the reverse and the configuration sweep achieves nothing.

Within the content sweep, the same logic applies: communications whose movement and alert are both gone are deleted as orphans, and alerts that still carry communications are protected until those communications are erased.

Dry run first ​

Each sweep takes a dry run flag, enabled by default. A dry run reports exactly which records would be deleted and touches nothing.

That default is the key point: an accidental call does no damage. Deleting requires asking for it deliberately.

Each sweep also accepts an explicit date threshold, which overrides the configured default — useful for a one-off deeper cleanup, or to ask "what would a six-month policy delete?" without committing to it.

What "dormant" means ​

Each sweep has its own definition, and they are not interchangeable:

SweepConsidered dormant when
UsersThe account's last sign-in is older than the threshold
ProjectsThe project has not been modified since the threshold
ContentThe movement, communication or alert is older than the threshold
ConfigurationThe item has been unused since the threshold — no movement, no membership
AuditThe event is older than the threshold

An account that signs in every month is never purged, however old it is. A project touched last week survives whatever its creation date. Retention here measures activity, not age.

What survives a purge ​

  • The last administrator of the platform or of a project is never deleted by the users sweep.
  • Groups that still have members are not deleted by the configuration sweep: only empty groups not modified since the retention threshold are. A group created empty, or emptied recently, is therefore kept.
  • The log history follows its item: it disappears with the purged movement, alert or communication.

First purge on an existing database

The content and configuration sweeps each run in one go: the first run can delete a large backlog. Measure it first with a dry run, then run it by hand outside usage hours.

See also ​

  • Users — deletion and export, the other half of data protection
  • Audit and traceability — the trace of access to personal data
  • Projects — disabling and deleting a project by hand