Retention schedule

How long the server keeps each kind of data (PLAN §17 Retention). These are the defaults; a school can shorten some of them for its own data, but nothing can lengthen them.

The same periods live in code in one place, internal/privacy/retention.go, and every retention sweep reads them from there. A test (TestRetentionDocMatchesCode) fails if this table and the code disagree, so change both in the same pull request. The Name column is the Go variable; Period is written exactly as the code prints it (90 days, 13 months, 2 years, or - for no fixed period).

NameDataPeriodNotes
RawAnswersRaw answers90 daysthen only weekly rollups remain
RollupsRollups and word memory-while the learner exists
PlaySessionsPlay sessions from linked games90 daysthen deleted; daily totals of the child's own lists stay while the learner exists
LeftSchoolGraceLearner who left a school30 daysgrace period by default, then deleted
LeftSchoolGraceMaxLearner who left a school (longest grace)1 yearthe most a school may set
InactiveFamilyWarningInactive family12 monthswithout sign-in, then warned
InactiveFamilyInactive family13 monthswithout sign-in, then deleted
InactiveTeacherWarningInactive teacher workspace18 monthswithout sign-in, then warned
InactiveTeacherInactive teacher workspace19 monthswithout sign-in, then deleted
AIOutputsAI outputs about a learner12 months
ReportsAndModerationReports and moderation records2 yearschild-safety evidence as the law requires
ChildSafetyEvidenceEvidence preserved for a child safety case1 yearafter the case closes, then deleted; longer under a legal hold; kept when the account or organisation is deleted
ChildSafetyCasesChild safety cases and the reports made to authorities2 yearsafter the case closes, then deleted; longer under a legal hold
CopyrightNoticesCopyright notices and counter-notices3 yearsafter the notice is decided, then deleted; not while a counter-notice waits
ServerLogsServer logs, with IP addresses14 days
AuditLogAudit log2 years
BillingRecordsBilling records10 yearsas tax law requires, at most; no learner data
BackupsBackups35 daysdeletions reach backups within this
DeletionUndoUndo window after a deletion7 daysthen the deletion is final
DoneJobsFinished background jobs14 days
DeadJobsFailed background jobs90 days
DeadJobPayloadsPayloads of failed background jobs14 daysthen cleared; done jobs' payloads are cleared at once
SessionsSigned-in sessions30 daysat most; sooner when idle or signed out
AccountTokensEmail links (verification, password reset, sign-in, change of email)2 daysat most; deleted when used or expired
UnverifiedAccountsAccounts whose email was never verified7 daysthen deleted
KnownBrowsersBrowsers an account signed in from90 daysafter the last sign-in from them, then forgotten
InvitesInvitations to join a family7 daysthen deleted; at once when accepted or cancelled
PendingConsentLearners waiting for a parent to confirm consent by email7 daysthen deleted with their consent link
PendingParentLetterChildren in a teacher's own workspace waiting for a parent to connect and confirm consent30 daysthen deleted, with their name, login card and any consent link
WithdrawLinksWithdraw links in the email confirming a parent's consent for a child of a teacher's own workspace1 yearat most; deleted when used or when the consent is withdrawn by any route
RemovedLearnersLearners removed by their family7 daysthe undo window, then deleted with their consents
PairingCodesPairing codes for linking a game1 daya code works once, for 15 minutes, swept within a day
LinkRequestsRequests to link a game by QR code1 daya request works once, for 15 minutes, swept within a day
DeviceTokensLinked games' tokens90 daysunused, at most; deleted when the device is revoked
KidSessionsChildren's sessions in the child view on the website1 dayat most; a session works for 2 hours, and ends when the child signs out
DevicesLinked games-while the learner exists; the name is cleared when unlinked
ExportsDownloads of a family's or learner's data7 daysthen deleted; only the adult who asked can download one
DeletedFamiliesFamilies their guardian deleted7 daysthe undo window, then deleted with everything in them
RoomResultsBoss Raid results of each raider90 daysthen deleted; the raid's answers are kept as raw answers
ConnectCodesConnect codes on letters for parents31 daysat most; a code works once, for 30 days
LearnerLinksFamilies' connections to a school's learner-until the family or the school disconnects, or either goes
DataRequestDueParents' data requests to a school (time to answer)1 monththe school must answer within this
DataRequestsParents' data requests to a school2 yearsafter the school answered, then deleted; open requests are kept until answered
ListPhotosPages photographed for a word list, and what the AI read from them1 dayat most; the picture is cleared as soon as it is read
ListAIRunsList checks, Word Forge lists, sentences and core and stretch versions the AI made for an adult7 daysat most; what was applied or saved stays in the list
ClassAIRunsClass insights and report comment drafts the AI made for a teacher30 daysat most; focus groups and lists the teacher made stay in the class
RosterConnectionsA school's connections to its information system, with their credentials-while the school is connected; disconnecting deletes them
RosterImportsLog of a school's roster imports and syncs (counts only)1 yearthen deleted; learner IDs from the school's system stay while the learner is at the school
SSOSignInsSign-ins with a school account waiting at Google, Microsoft or Clever, and games waiting for a pupil to sign in1 dayat most; each works once, for 10 minutes
SSOAddressesPupils' school addresses for signing in with a school account-while the learner is at the school; a teacher can clear one
WordCountsWeekly counts of a learner's known and mastered words1 yearthen deleted, but the newest; they go with the learner
BetaInvitesBeta invite codes and allowlisted addresses (hashed) for invite-only sign-up90 daysat most; an address is deleted when its adult signs up
FriendGroupInvitesInvite codes for a friend group8 daysat most; a code works once, for 7 days
FriendGroupsFriend groups and which children are in them-until a guardian takes the child out or the group ends, or the child or the family goes
RankSettingsWhich ranking boards a learner is on, and an organisation's ranking settings-until an adult turns a board off, or the learner or the organisation goes
RankRunsFinished Hardcore and Daily Dungeon runs sent for rankings400 daysthen deleted, but each learner's best Hardcore run in each language; they go with the learner
RankEntriesRanking boards as last computed-this season's and last; computed again every few minutes, so a learner taken off a board goes at once
StripeCustomersAn organisation's Stripe customer and subscriptions (IDs, plan, status, dates)-while the organisation exists; its Stripe customer is closed within a day after it goes
StripeEventsStripe's payment events (IDs and type only)30 daysthen deleted
SchoolBillingA school's quotes, orders and tax exemption certificates-while the school exists; Stripe keeps its invoices as the tax records
GroupsA group's policy and join code, and the lists its schools share with it-while the group exists; a shared list leaves it when made private or deleted, or its school leaves
PronunciationsSpoken words and sound-outs (words only, shared by everyone)1 yearunused for this long, then deleted

How it is enforced