Vekt

Candidate data retention: a policy you can actually enforce

What candidate data retention period to set under GDPR, why there is no single legal number, a policy template, and how Vekt's daily purge enforces it.

What candidate data retention period should you set? The GDPR gives no number. It says you keep CVs and application data no longer than you need them, and leaves you to decide how long that is, write it down, tell candidates and then actually delete. Most retention policies fail at the last step: the document says six months, and the ATS still holds every CV since 2019.

This post covers the rule, the periods regulators and practitioners point to in a few countries, a short policy template you can adapt, and how Vekt, our free, open-source ATS, enforces a retention period in code, including its gaps. Every Vekt fact was checked on 28 November 2026 in the Vekt repository at commit 4fbf1fe, mainly in lib/queue.ts, lib/email.ts, app/api/admin/settings/route.ts, the Prisma schema and docs/compliance/records-and-logging.md. This is a practical guide, not legal advice.

The rule: storage limitation

The GDPR’s storage limitation principle, Article 5(1)(e), says personal data must be “kept in a form which permits identification of data subjects for no longer than is necessary” for the purposes it was collected for. The UK ICO’s guide to the principle quotes that wording and turns it into three practical duties:

  • “You need a policy setting standard retention periods wherever possible.”
  • “You should also periodically review the data you hold, and erase or anonymise it when you no longer need it.”
  • When you erase data, “you should also delete it from any back-up of the information on that system.”

The same page uses recruitment as its example: an employer “should not keep recruitment records for unsuccessful applicants beyond the statutory period” in which a claim could be brought.

Ireland’s Data Protection Commission says it plainly: the GDPR “does not stipulate specific retention periods for different types of data”. The right period depends on why you keep the data, and national law fills in the rest, mostly through the deadline for a rejected candidate to bring a discrimination claim. That is why the answers differ by country:

Country What the source says Source
UK No fixed timescale. Don’t keep records beyond the period in which a legal claim could be brought; tell candidates up front if you will keep data for another purpose, such as a waiting list. ICO, keeping recruitment records
France Data may only be kept for a limited time. After a negative outcome, a CV can be kept for a talent pool if retention does not, in principle, exceed two years from the last contact and the candidate has been informed. CNIL, recruitment for small businesses
Germany No statutory period. A rejected candidate has two months to raise a discrimination claim in writing (§ 15(4) AGG) and three further months to go to court (§ 61b ArbGG), so 3 or 6 months is the usual guideline, plus a short buffer. Longer retention needs consent. Haufe

Two patterns come out of this. First, the base period for an ordinary application is “the claim window plus a margin”, which is months, not years. Second, a talent pool is a separate purpose: it needs its own period, and candidates have to be told about it (in Germany, asked) before you rely on it. Whatever you choose, tell candidates: the CNIL lists the retention period among the things your notice to candidates must include, and the ICO expects you to say up front if you will keep data for longer.

A short policy template

Copy this, fill in the brackets, and have it checked by whoever handles data protection for you.

CANDIDATE DATA RETENTION POLICY  (version [x], [date], owner: [role])

1. Scope
   CVs, application forms, screening answers, AI evaluations, recruiter
   notes and emails about an application, in [ATS name] and anywhere
   they are copied (inboxes, shared drives, exports, backups).

2. Retention periods
   a. Applications not hired: deleted [N] days after the application
      date. Reason: the period in which a rejected candidate can bring
      a claim in [country] is [X], plus a margin of [Y].
   b. Talent pool: kept for [M] months only with the candidate's
      [informed agreement / consent], recorded with a date. Not used
      unless (b) applies.
   c. Hired candidates: the application data moves to the personnel
      file on the start date and follows the employee retention policy.
      The copy in the ATS is deleted under (a).

3. How deletion happens
   Automatic: [ATS] deletes candidate records and CV files daily once
   the period in 2a has passed. Owner checks the deletion log monthly.
   Manual: copies outside the ATS (inbox attachments, downloads) are
   deleted by the recruiter within [Z] days of the decision.
   Backups: rotated so that no backup is older than [B] days.

4. Requests
   Erasure and access requests go to [address] and are answered within
   one month. Erasure covers the ATS, copies outside it and, as backups
   rotate, the backups.

5. Telling candidates
   The privacy notice on every job page states the periods in 2a and 2b.

6. Review
   [Role] reviews this policy every [12] months and after any change
   of tools, AI provider or email provider.

The template’s weak point is the same in every company: copies. A policy that only governs the ATS leaves the CV in a hiring manager’s inbox for years. Section 3 names those copies so someone is responsible for them.

How Vekt enforces a retention period

One setting. An admin sets the Retention period (days) on the admin dashboard. It is stored in the database as RETENTION_DAYS, defaults to 90, and the API accepts whole numbers from 1 to 3,650.

A daily purge. A background job, purge-expired-candidates, runs every day at 02:00 UTC. It finds every candidate whose application date is older than the retention period, deletes their CV files from the uploads folder, then deletes the candidate records. Their AI evaluation, screening answers and email log are deleted with them by database cascade.

 Application received ──► appliedAt stored
                              │
              day N−7 ...     │   RETENTION_DAYS = N
                              ▼
 ┌────────── daily job, 02:00 UTC ───────────────────────────┐
 │ 1. read RETENTION_DAYS (invalid value → skip, log warn)    │
 │ 2. expired = appliedAt older than N days                   │
 │    none expired → stop                                     │
 │ 3. warn candidates within 7 days of expiry, once each      │
 │    (DATA_RETENTION_WARNING email, sent even if opted out)  │
 │ 4. delete expired CV files from private/uploads            │
 │ 5. delete expired candidates                               │
 │      └─ cascades: Evaluation, CandidateAnswer, EmailLog    │
 └────────────────────────────────────────────────────────────┘

A warning to the candidate. Seven days before deletion, candidates get a Data Retention Warning email with the deletion date filled in. It is sent even to candidates who opted out of other emails, and only once per candidate. Like all Vekt emails, it goes out through Resend, so Resend is a processor to list in your policy. If the retention period is under 7 days, no warnings are sent.

That gives you the two things a policy needs from software: deletion that happens without anyone remembering to do it, and a single number you can quote in your privacy notice. Because the purge runs on your own server, “deleted” means deleted from your database and your disk, not a request to a vendor. Candidate data stays on your servers only when scoring runs on a local model; with a hosted AI provider, the redacted CV text is also sent to that provider, as we explain in AI CV screening with Ollama.

What Vekt doesn’t do, so your policy has to

Read the code, not just the feature list. In the current version:

  • The clock counts from the application date, whatever the status. Accepted and shortlisted candidates are deleted on the same day as rejected ones. That matches section 2c of the template, but only if someone moves a new hire’s data into your HR system before the period runs out.
  • There is one period for everyone. There is no separate talent-pool period and no per-job override. If you run a talent pool, it has to live somewhere else, or your single period has to fit it, which usually makes it too long for everyone else.
  • There is no “delete this candidate” button. An erasure request before the period ends means deleting the record and the CV file by hand, on the server. Write down how, before the first request arrives.
  • The purge needs Inngest. Without INNGEST_EVENT_KEY set, the evaluation pipeline still runs in-process, but the retention cron does not run at all, as the README warns. A test install without Inngest never deletes anything.
  • Warnings depend on the purge finding something. The warning step runs after the check for expired candidates, so on a day with nothing to delete, no warnings go out either. On a quiet install, a candidate can reach deletion without having been warned. Don’t promise a warning in your privacy notice until this is fixed.
  • Backups, logs and copies are yours. The purge deletes from the live database and uploads folder. Your backups of the db-data and uploads volumes still hold the data until they rotate, and anything recruiters downloaded is outside Vekt entirely.

There is also a real tension, which Vekt’s own docs/compliance/records-and-logging.md describes as “the collision with GDPR”. Data protection pushes you to delete; anyone who has to explain an AI-assisted decision later wants records. The doc proposes splitting them: delete the candidate’s personal data, keep a record of the system’s behaviour (score, provenance, the fact a human reviewed it). In today’s code the evaluation row, including its prompt snapshot, is deleted with the candidate, and the doc names this as a known gap: “the right GDPR answer and a weak Art. 12 answer”. If you need a longer audit trail, that is a decision to make with your lawyer and a change to build, not something to assume. Our post on GDPR and self-hosted recruiting covers the rest of the GDPR picture.

Setting it up in five steps

  1. Pick the base period from the claim deadline in your country plus a margin, with your adviser. Write the reason next to the number.
  2. Set it in Vekt under Admin → Retention period (days), and check that Inngest is running so the daily purge fires.
  3. Edit the retention warning email under the admin email templates so the wording matches your privacy notice.
  4. Rotate backups so the oldest backup is not much older than your retention period, or you are keeping data you told candidates you deleted.
  5. Put a monthly check in the calendar: search the logs for Purge: completed, check the oldest appliedAt in the database, and clear any CVs saved outside the ATS.

Because Vekt is MIT-licensed, you can read the purge code yourself before you quote it in a policy, and compare how other projects handle candidate data in our open-source ATS comparison.

FAQ

There isn’t one. The GDPR requires you to keep it no longer than necessary, and regulators expect you to tell candidates the period. National guidance fills in the rest: the ICO ties it to the claim window, the CNIL allows up to two years for a talent pool if candidates are informed, and German practice is usually 3 to 6 months.

Can I keep CVs for future roles?

Usually yes, as a separate talent-pool purpose with its own, longer period, and only if candidates were told beforehand (and in some countries, such as Germany, agreed). Don’t extend the period for every applicant just to keep a few.

Does deleting the candidate in the ATS also delete backups?

Not immediately. The ICO says erased data should also be deleted from backups. In practice, that means rotating backups so they expire within a known time after the live deletion, and saying so in your policy.

How does Vekt delete candidate data?

A daily job at 02:00 UTC deletes every candidate whose application is older than RETENTION_DAYS (default 90), with their CV file, AI evaluation, screening answers and email log. It needs Inngest to run, and it deletes on the application date regardless of the candidate’s status.

Can a candidate ask to be deleted sooner?

Yes, and you have to act on it. Vekt has no per-candidate delete button today, so an early erasure means removing the record and CV file on the server by hand. Plan that process before you need it.