Retention
How long the portal keeps the platform’s own data, and who deletes it (ADR 0324). Organisations set their own periods for their data under Manage → Retention (ADR 0057); this page is about what the platform keeps as controller: free accounts, its sales, its support queue, its AI use and the server’s logs.
The plan
Section titled “The plan”The periods are rows of the table platform_retention_plan, which the API’s daily sweep reads; the periods themselves, what happens then and who does it are listed once, in the admin console’s handbook, Support → Retention (the console’s docs/handbooks/platform/en/support.md), where the console shows the plan, what is due next and the last run.
The daily sweep
Section titled “The daily sweep”The API runs it once a UTC day after 03:00, right after the organisations’ retention. Each run is a row in platform_retention_runs with counts only (how many of each kind went, and per kind what is due now, within 30 days and the earliest date) and the kinds that failed. A failing kind doesn’t stop the others; the API’s log says why, and the next day’s run tries again. Each run does a bounded amount: what is left goes the next day.
- Inactive accounts. Only accounts of the platform itself: never an organisation’s own accounts, nor the platform’s team, nor an account with a running Pro subscription or whose person restricted the processing of their data. The person is mailed in their language with the date; signing in once takes the notice back and starts the 24 months again. Without the email (the mail server refused it), nothing is erased; the sweep tries again the next day. On the date, the memberships, the account and its files are erased, the organisations the person learned at get a notice, and the person a confirmation.
- Accounting records. When an account or an organisation is erased, its invoices, orders, payouts and ledger entries move to the table
accounting_archivefirst, with the organisation’s seller details and the buyer of a platform sale. The portal only adds to it; the console shows it to its accounting role. Seven years after the end of their financial year (a record of 2026 on 1 January 2034) the sweep deletes them, and the platform’s ledger, marketplace invoices, payouts and ended Pro subscriptions of that age. - Tickets of the platform’s queue go three years after they were resolved or closed, with their attachments in the files store. An organisation’s queue is the organisation’s.
Server logs
Section titled “Server logs”Every deploy (deploy/update.sh, step “Log retention”) sets:
- the journal (
/etc/systemd/journald.conf.d/academy-retention.conf):MaxRetentionSec=30day, a new file every day. It holds the output of the API, the web app and every other service, and the server’s sign-ins; - nginx’s logs (
/etc/logrotate.d/nginx): rotated daily, 30 kept, none older than 30 days.
In /etc/academy-portal-deploy.env, ACADEMY_LOG_DAYS=14 sets other days and ACADEMY_LOG_RETENTION=no leaves the logs to you.
Not set by the deploy, and yours to keep to the same 30 days: Docker’s container logs in a Docker installation (its default driver keeps them without an age limit; set log-opts in /etc/docker/daemon.json or ship them to the journal), PostgreSQL’s own server log, and what the hosting provider, the mail relay and payment and AI providers log.
Organisations after leaving (ADR 0374)
Section titled “Organisations after leaving (ADR 0374)”The retrieval period is 30 calendar days after the agreed switch transition or effective termination. The switch API’s 1–365-day extension concerns the transition, not the retrieval or erasure delay. An export ZIP expires 30 days after creation independently; it never extends a contract deadline. A longer retrieval period needs an express documented agreement and an updated case/schedule, not a global setting.
Erasure follows without undue delay and within 30 further days (DPA 2026-11-4 § 7(2), Terms 2026-11-3 §§ 11(3)/16(3)). ORG_DELETE_AFTER_EXPORT_DAYS is the operator’s execution target, allowed 7–30, default 30. A delayed sweep must not extend it. The hourly sweep plans during retrieval, sends two notices and prepares an operations ticket seven days ahead. Operations executes the job on time; the sweep does not erase organisations automatically. Mail, job, lab-node or provider failures require immediate follow-up, not a new deadline.
A verified controller instruction to erase rather than retrieve uses the separate platform job path, with authority, receipt date, scope, confirmation and deadline kept in the organisation-linked ticket. It does not wait for the standard retrieval schedule. Give a detailed confirmation only after checking file/provider outcomes; identify statutory retention and backup/provider residuals with deadlines. Restore must reapply the erasure journal before normal access.
Before rollout, check values above 30 (startup now rejects them), existing accepted contracts and pending exits. The new template does not retroactively replace agreements; earlier stricter obligations still apply. Review changed schedules and notices before normal operation.