Retention and purges
Set how long mirrors, audit records, findings, work items, learning signals and finished jobs are kept, and purge a repository, a project or a person's identities.
Retention
A retention job runs daily on every worker and deletes what is older than its period. Each kind's run is audited with the count it removed.
Setting (retention section) |
Server setting | Default | Deletes |
|---|---|---|---|
outOfScopeMirrorDays |
Retention:OutOfScopeMirrorDays |
7 | Mirrors of repositories that left scope longer ago |
auditDays |
Retention:AuditDays |
365 | Audit records older than this |
secretFindingsDays |
Retention:SecretFindingsDays |
730 | Secret findings resolved longer ago (open ones stay until resolved) |
workItemDays |
Retention:WorkItemDays |
0 | Finished work items not changed upstream for this long, with their comments |
learningAggregateDays |
Retention:LearningAggregateDays |
365 | The learning signals desktops shared (daily counts, never text) for days older than this; a team note's standing counts only the days kept |
jobArchiveDays |
Retention:JobArchiveDays |
30 | Moves finished jobs (succeeded, failed, canceled) this long after they finished from the job list to the job archive; queued and running jobs never move |
archivedJobDays |
Retention:ArchivedJobDays |
90 | Deletes archived jobs this long after they finished; 0 keeps the archive for good. It must be 0 or at least jobArchiveDays, or the server does not start |
Archived jobs stay readable for diagnostics: GET /api/v1/jobs/archive (administrators; kind, state, repository,
limit, and before, a finished time, to page back) lists them newest first. Schedules' last runs and a repository's
last review count archived jobs too.
A period of 0 keeps that data for good. Set the periods in the configuration file's retention section, or as server
settings; they take effect when the replicas restart.
Note: No license state ever deletes data. An expired license stops queries and indexing, but purges and the retention job still run.
Purges
A purge removes data now, says what it removes before it does, and is audited with the counts removed.
| To purge | Where | CLI |
|---|---|---|
| A repository: it is excluded, and its index data and mirror are removed | Repositories, Purge | synaxis repos purge <repo> --yes |
| An Azure DevOps project: it is deselected, its repositories are purged and its work items deleted | The connection's Scope, Purge on the project | synaxis projects purge <connection> <project> --yes |
| A person's linked identities, their stored upstream tokens and the access they gave | Users and roles, Purge identities | synaxis users purge-identities <user> --yes |
In the console, a purge opens a confirmation that lists what goes; select Yes, remove it to go ahead.
A purged repository keeps only its row and refs (so a manual choice survives), a curator's card overrides, its secret findings (kept by their own retention) and the model usage already spent.
What happens when a repository leaves scope
When a repository is removed upstream, moved out of scope by a rule, a project or a manual choice, or can no longer be reached by the connection:
- It leaves search at once.
- Its index data (vectors, structure, summaries, contracts, links) is purged within an hour, or at the next nightly
reconcile. A purge caused by revoked upstream access runs first. The
SynaxisPurgeLatealert fires when a purge has waited 45 minutes. - Its mirror is kept for
outOfScopeMirrorDays, so including it again fetches only what changed. A repository deleted upstream, or one the connection lost access to, loses its mirror with the rest.