Skip to main content

Technical

Purge retained face biometric templates for a GDPR erasure request

Purge templates with a bulk delete call on the biometric templates endpoint, or with a session deletion marked as privacy erasure. Switching the retention policy back purges nothing.

Purge retained face biometric templates for a GDPR erasure request

Contents

In this guide

Jump to the part you need.

This page is for teams whose Didit application retains image-free face biometric templates after session deletion and now has to answer an erasure request. Every purge route is documented: one template, a bulk delete, a session deletion marked privacy erasure, or User deletion. The price book has no per-purge line; checks cost $0.33 for a full ID check. The caveat: turning retention off does not purge the templates you already hold.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Retained biometric template erasure at a glance
QuestionAnswer
Who acts on the requestYou, as controller. Didit acts as data processor and purges when you instruct it.
Legal hookGDPR Article 17(1) right to erasure; California Civil Code §1798.105 right to delete
Purge one person when a session still existsDelete any one of that person's sessions with deletion_instruction: privacy_erasure. It purges every retained template for that User.
Purge one person when sessions are gonePOST /v3/biometric-templates/delete/ with delete_all true and vendor_user_uuid
Purge a known listPOST /v3/biometric-templates/delete/ with template_uuids
Purge a whole UserPOST /v3/users/delete/, which also purges that User's retained templates
What does not purgeSetting face_retention_policy back to delete_with_session
EvidenceEvery retain and purge attempt, including failures, is on the audit trail with principal, instruction_class, instruction_source, instruction_id and outcome

Start free in the sandbox at https://business.didit.me/. There is no sales call. If you build with an AI assistant, connect the Didit MCP server at https://didit.me/developers/mcp/ and run these calls from your editor. The retention controls are documented at https://docs.didit.me/console/data-retention, the template endpoints at https://docs.didit.me/management-api/biometric-templates/overview, and every price on https://didit.me/pricing/.

Who has to answer the request, where, and from when

The subject is the person whose face produced the template. Under the GDPR that is any natural person whose biometric data you process, wherever your company sits, when the territorial scope in Article 3 reaches your processing. Under the CCPA it is a California consumer whose sensitive personal information you hold, at a business that meets the thresholds in §1798.140(d).

The primary texts are Regulation (EU) 2016/679, published in OJ L 119, 4.5.2016 (EUR-Lex, Regulation (EU) 2016/679 page, read November 26, 2026), and the California Civil Code, Title 1.81.5. A retained face template is biometric data under Article 4(14) and a special category under Article 9(1), so the erasure right in Article 17(1) reaches it. California classifies biometric information as sensitive personal information, which puts it under the delete right in §1798.105 and the right to limit in §1798.121.

Applicability by regime
RegimePrimary textApplies fromWho is subjectProvision that reaches a retained template
GDPR, EU and EEARegulation (EU) 2016/679, published OJ L 119, 4.5.201625 May 2018, under Article 99(2)Controllers and processors handling personal data of people in the EU and EEAArticle 17(1) erasure; Articles 4(14) and 9(1) biometric data; Article 5(1)(e) storage limitation
CCPA, as amended by the CPRA, CaliforniaCalifornia Civil Code §1798.100 et seq.1 January 2020, CPRA amendments from 1 January 2023Businesses doing business in California that meet the §1798.140(d) thresholds§1798.105 delete; §1798.140 biometric information as sensitive personal information; §1798.121 limit
BIPA, Illinois740 ILCS 14Enacted 2008Private entities that collect biometric identifiers or biometric information§15(a) written retention and destruction schedule; §15(b) written release

Didit's role is processor; you remain the controller. Each application stores data in the location chosen at creation: the European Union (Ireland) by default, with Australia (Sydney), Mexico, the United Arab Emirates and the United States (N. Virginia) coming soon, and in-country processing available to Enterprise accounts subject to availability and contract. The purge routes on this page are the documented API calls listed below. For a DPA or TOMs, write to privacy@didit.me.

Didit Business Console: session detail liveness
Didit Business Console: session detail liveness

What a retained template actually is

By default, deleting a session also deletes the face embedding that powered Face Search 1:N and duplicate detection. An application can opt in to retention with face_retention_policy: retain_until_user_deleted, or per deletion with retain_face_embeddings: true. Didit then deletes the session and all of its data as usual and keeps one separately managed, image-free face biometric template anchored to the session's User.

A retained biometric template is biometric data. It is not anonymous, it is not transient, and it is not deleted with the session. It stays until its scheduled expiry, an earlier applicable-law deadline, User deletion, a privacy-erasure request, or an explicit purge.

The template holds the numeric face template plus retention metadata. It never contains the face image, liveness video, document data, extracted identity fields, the decision, or the deleted session's id. It is tenant-scoped, used only for your duplicate-face, multi-account, biometric-authentication and list matching, and it is never used for model training or cross-customer fraud processing.

Fields you read before you purge
FieldWhat it tells you
uuidTemplate id, the unit a single purge takes
vendor_user_uuidThe User the template is anchored to. One User can hold several templates.
vendor_dataThe User's current vendor_data, resolved live. Free-form string, may be null.
source_typesession_delete, automatic_retention or backfill
retention_policy and retention_overrideWhether the application policy or a per-call override created it
retained_at and expires_atWhen it started and when it dies on its own
retained_by, retained_by_typeApplication UUID for an API key, Console member id, or a service principal
instruction_class, instruction_source, instruction_idWhether this was an operational session delete or a privacy erasure, and your own reference
statuspending, active, expired, held_out_of_use, purge_pending, purge_failed, purged
Delete a verification session from the Console
Delete a verification session from the Business Console. By default, the face embedding is deleted with the session. If biometric-template retention is enabled, an image-free template can remain. To purge all retained templates for the User when deleting a session, send deletion_instruction with the value privacy_erasure in the session deletion API call.

Every route that purges a template

Six routes remove a template from matching and delete the stored template. Five are instructions you send; one is the clock.

Purge points
RouteCallScopeUse it when
Single templateDELETE /v3/biometric-templates/{uuid}/One template, answers purged or already_purgedYou inspected one record and want it gone
Known listPOST /v3/biometric-templates/delete/ with template_uuidsEvery uuid you name, one result eachYou collected the uuids from a list or count call
Bulk with a filterPOST /v3/biometric-templates/delete/ with delete_all true plus filtersEvery template matching the filtersOne User with several templates, or a cohort sweep
The owning UserPOST /v3/users/delete/The User entity and its retained templatesThe person is leaving your system entirely
Session deletion marked as erasureAny session delete with deletion_instruction: privacy_erasureThat session plus every retained template for its UserA data subject files an erasure request and you still hold a session
ExpiryReaching expires_atThat templateAlways running, no call needed

Bulk purge: delete_all, template ids, and narrowing filters

Count first, so you can prove the number you expected. The count endpoint takes the same filters as the list endpoint.

curl -X GET 'https://verification.didit.me/v3/biometric-templates/count/?vendor_user_uuid=USER_ID' \
  -H "x-api-key: YOUR_API_KEY"
# {"count": 3}

Then purge by uuid when you want each record named in the response.

curl -X POST https://verification.didit.me/v3/biometric-templates/delete/ \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template_uuids": ["TEMPLATE_UUID_1", "TEMPLATE_UUID_2"]}'
# {"results": [{"uuid": "TEMPLATE_UUID_1", "outcome": "purged"},
#              {"uuid": "TEMPLATE_UUID_2", "outcome": "already_purged"}]}

Or purge by selector, which is the bulk route. delete_all true is the selector and the filters narrow it: vendor_data, vendor_user_uuid, status, source_type, retained_from, retained_to. Filters are optional, but add at least one whenever the intended scope is narrower than every template you hold, because the selector alone matches everything.

curl -X POST https://verification.didit.me/v3/biometric-templates/delete/ \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"delete_all": true, "vendor_user_uuid": "USER_ID"}'

A cohort sweep looks the same with a different filter set. This one purges every active template retained in calendar 2025.

curl -X POST https://verification.didit.me/v3/biometric-templates/delete/ \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"delete_all": true, "status": "active", "retained_from": "2025-01-01T00:00:00Z", "retained_to": "2025-12-31T23:59:59Z"}'

Two error shapes matter. Without a selector the call answers 400 with {"template_uuids": ["This field is required unless delete_all is true."]}, and a Console user token rather than an API key answers 403. Purged templates no longer appear in the list endpoint, so a second count of zero is your confirmation.

delete_all versus privacy_erasure

These are the two routes people confuse. They do different things at different scopes.

Bulk template purge compared with a privacy erasure instruction
Aspectdelete_all on the template endpointprivacy_erasure on a session deletion
What it deletesTemplates only. Sessions are untouched.The session and all of its data, plus every retained template for that User
Scope controlFilters: vendor_data, vendor_user_uuid, status, source_type, retained_from, retained_toThe session's User, all of it. You cannot narrow it.
Retains a new templateNoNever, regardless of the application policy
Reference you can carryNo instruction_id field on this callinstruction_id, up to 255 characters, for example your ticket id
Fails whenNo selector, or invalid filter values, returns 400Combine it with retain_face_embeddings: true and the call is rejected with 400
Right answer forA person whose sessions are already deleted, or a cohort sweep with a documented filterOne data subject filing an erasure request while you still hold a session

The erasure instruction is one call on any session the person owns. Every template anchored to that User goes, not just the one behind the session you named.

curl -X DELETE https://verification.didit.me/v3/session/SESSION_ID/delete/ \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"deletion_instruction": "privacy_erasure", "instruction_id": "dsar-2026-0142"}'

The response tells you what happened to the face data, which is the line you paste into the ticket.

{
  "session_id": "SESSION_UUID",
  "session_number": 1024,
  "face_retention_outcome": "deleted",
  "biometric_template_uuid": null,
  "biometric_template_expires_at": null,
  "deleted_child_verifications": 0
}

retained_with_user would mean a template survived and still carries a uuid and an expiry. That should not happen on a privacy erasure. If you read it, purge the template explicitly with the template endpoints and, as an operational step, raise the pattern with Didit at privacy@didit.me.

Worked example: one erasure ticket, dsar-2026-0142

A user of a lending app asks for deletion. The app opted in to retention with a 365-day window, so three sessions have already been deleted and three templates are still active, anchored to one User.

  1. Find the User. Search GET /v3/users/?search= on the email or on vendor_data, and keep the didit_internal_id as your anchor.
  2. Count the templates with vendor_user_uuid set to that id. The answer is 3, and you write 3 in the ticket.
  3. List them to confirm all three are active and none is held_out_of_use, so the matching impact of the purge is understood.
  4. Check whether any session still exists. If one does, delete it with deletion_instruction: privacy_erasure and instruction_id: dsar-2026-0142. That single call purges all three templates and leaves nothing behind.
  5. If no session exists, call POST /v3/biometric-templates/delete/ with delete_all true and that vendor_user_uuid, then read the three outcomes.
  6. Count again. Zero, because purged templates are not listed.
  7. Attach the audit entries and the response body to the ticket, and reply to the subject within the deadline that applies to you.

The audit trail that makes the purge defensible

Every retain and purge attempt, including failures, is recorded on Didit's audit trail with the acting principal, instruction class, instruction source, instruction id and outcome. That record is what you point at when a supervisory authority asks how the erasure was carried out, and it exists for failed attempts too.

What the audit trail records for each attempt
ElementValues you will see
Acting principalApplication UUID for an API key, a Console member id, or a service: principal
instruction_classoperational_session_delete or privacy_erasure
instruction_sourceapi, console, privacy_erasure, explicit_template_purge, vendor_user_delete, expiry, automatic_retention, backfill, reconciliation, migration, system
instruction_idYour own reference, or a Didit-generated one
OutcomePurged, already purged, or a failure such as purge_failed

The Console view lives at Settings, then Organization, then Audit log. It shows timestamp, actor, method, path, status code, IP address and application, and filters cover method, status code, members and API keys, actor and date range. Read-back is set by plan: 30 days on Free, 1 year on Growth, 3 years on Scale, your contract on Enterprise, with export on Scale and Enterprise. If your evidence window is longer than a year, plan for Scale.

Two details matter for evidence quality. The Console audit log keeps a redacted copy of the request body of a write, so your own values such as vendor_data are replaced by type and length markers. And a failed purge is not a gap: a 503 moves the template to purge_failed, excludes it from matching immediately, and leaves the call retryable, with both attempts on the trail.

Obligations in one column, Didit capability in the next

What the law asks for and what the product does
ObligationLegal hookDidit capability
Erase personal data without undue delayGDPR Article 17(1)Single purge, delete_all bulk purge, User deletion, and privacy_erasure on any session deletion
Keep data no longer than necessaryGDPR Article 5(1)(e)Every template has a finite expires_at, set by face_retention_days between 1 and 3650, and expires at the earliest of that period, your retention window and any deadline you send
Demonstrate complianceGDPR Articles 5(2) and 30Audit trail with principal, instruction_class, instruction_source, instruction_id and outcome, plus a searchable Console audit log with plan-based read-back
Lawful basis for biometric processingGDPR Article 9(2)(a)Retention is opt-in. Enable it only when your controller instruction and privacy notice cover it.
Processor assists the controllerGDPR Article 28(3)(e)You send the instruction, Didit executes and records it. DPA and TOMs on request from privacy@didit.me.
Delete and limit use of sensitive personal informationCCPA §1798.105 and §1798.121Same endpoints. held_out_of_use exists as a template status, and a purge removes the template from matching entirely.
Security of processingGDPR Article 32SOC 2 Type 2, ISO/IEC 27001:2022 certified, TLS 1.3 in transit and AES-256 at rest, EU (Ireland) data location by default

Exceptions and open questions

  • Deadlines and exceptions vary by jurisdiction. Response deadlines, the scope of the erasure right and the exceptions to it differ between the GDPR, the CCPA and US state biometric statutes. This page describes documented Didit behaviour and is not legal advice. Confirm the rule that applies to you with counsel before you rely on an exception.
  • Legal-claim and legal-obligation exceptions. Article 17(3) lets a controller refuse erasure for the establishment, exercise or defence of legal claims, and for compliance with a legal obligation such as AML record-keeping. Legal-claim and legal-obligation exceptions may apply, and counsel must determine whether the template itself may be retained under one. Document the reasoning per request and check it with counsel.
  • CCPA exceptions. §1798.105(d) allows a business to keep information for listed purposes, for example completing a transaction, detecting security incidents, or complying with a legal obligation. Whether keeping duplicate detection after an erasure request fits one of those purposes is a jurisdiction-specific legal question. Obtain legal advice and document the exception you rely on before you keep a template.
  • Expiry is deletion, not a request. A template that expires at expires_at is gone, but the record shows expiry as the instruction source. An auditor reading a ticket will want the purge that answered the request, so do both when a request arrives.
  • Backfilled and migrated templates. source_type can be backfill, and instruction_source includes migration and reconciliation. Templates created outside a normal session deletion still need purging, and delete_all with a date window catches them.
  • No User, no anchor. If a session had no linked User, a retention request returns ineligible_no_vendor_user and nothing is kept. There is nothing to purge for that session.
  • Open question: how long the instruction reference is retained. instruction_id is stored on the audit trail and on any retained template, while the Console audit log keeps a redacted copy of write bodies. Keep your own ticket copy of the reference either way.
  • Open question: in-country processing. Enterprise accounts can enable local data residency subject to availability and contract. The purge routes are the documented calls on this page, and the residency contract should state where the audit trail lives.
  • Withdrawn consent that is not an erasure request. Article 17(1)(b) makes withdrawal of consent an erasure ground where no other legal basis applies. Withdrawal of consent may trigger an erasure review where consent was the only lawful basis, subject to applicable law and counsel.

Implementation checklist

  1. Confirm whether retention is on at all. Check App Settings, Data retention, and the face_retention_policy value, before you promise a subject anything.
  2. Keep the User id on every ticket. vendor_user_uuid is the anchor that makes a bulk purge possible.
  3. Count with GET /v3/biometric-templates/count/ and record the number in the ticket before you purge.
  4. Send privacy_erasure with your ticket id in instruction_id as the default path when a session exists.
  5. Fall back to delete_all with vendor_user_uuid when no session exists, and never send delete_all without a filter.
  6. Read every outcome in the response. already_purged is a pass, not an error.
  7. Count again and attach the zero.
  8. Retry any 503. The template is already out of matching, and both attempts are recorded.
  9. Check your audit log window on the current plan before an authority asks. Plans with shorter audit-log retention may be insufficient when the required evidence window exceeds that period.
  10. Review the retention policy after the ticket. If the population of templates you hold has no documented need, turn retention off and purge what is left.

Worked cost example

A team on the Growth plan handles 250 erasure requests in a month. Each request is one bulk purge call or one session deletion marked privacy_erasure. The price book lists no per-purge line, so the erasure work itself adds nothing to the bill. To put a number on the purge, assume each erased user onboards once more inside the year and each check is a full ID check at list $0.33. That onboarding figure is an assumption, not a documented rate.

  • List price: 250 x $0.33 = $82.50
  • Growth, 4% off Didit prices: 250 x $0.3168 = $79.20
  • Scale, 10% off: 250 x $0.297 = $74.25
  • One 1:N face search for each returning user at $0.05: 250 x $0.05 = $12.50. On Growth at $0.048: 250 x $0.048 = $12.00. On Scale at $0.045: 250 x $0.045 = $11.25.
  • Growth total: $79.20 + $12.00 = $91.20. That sits inside the $115 monthly credit, so no top-up is needed that month, assuming no other usage consumes the monthly credit first.

Two billing facts to state plainly in the ticket file. A session you delete does not refund credits already consumed by its verification. And a purge call is not a billable check, so there is no per-request charge to pass to the data-protection team.

Sources

Next step: open a free sandbox at https://business.didit.me/ and run a count, a purge and a second count against a test application. There is no sales call. The calls are documented at https://docs.didit.me/management-api/biometric-templates/overview, and the price list you will be billed against is on https://didit.me/pricing/.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How do I delete all retained biometric face templates for one user?

If any session for that person still exists, delete one session with deletion_instruction: privacy_erasure; that call purges every retained template anchored to that User and never keeps a new one. If the sessions are already gone, call POST /v3/biometric-templates/delete/ with delete_all true and vendor_user_uuid set to that User. Both routes record an audit entry with the outcome.

What is the difference between a bulk template purge and a privacy erasure instruction?

delete_all runs on the biometric-templates endpoint and purges templates only, narrowed by filters such as vendor_user_uuid, status or a retained_from and retained_to window. privacy_erasure is an instruction on a session deletion: it deletes the session and all of its data and purges every retained template for that User. Use the erasure instruction when a subject asks and a session exists, and the bulk route for cohort sweeps or when sessions are already deleted.

If I turn biometric template retention off, are existing templates purged?

No. Changing the setting applies to deletions from that point on, and no existing template is created or purged by the change. Templates already retained stay until their expires_at, User deletion, a privacy-erasure request, or an explicit purge call.

Does deleting the session delete the biometric template?

Only if the application did not opt in to retention. On an opted-in application the session and all its data are deleted and one image-free template stays anchored to the User. The delete response tells you which happened: face_retention_outcome is deleted when the embedding went with the session and retained_with_user when a template survived, with its uuid and expiry returned.

How do I prove the purge happened for an audit?

Every retain and purge attempt, including failures, is on Didit's audit trail with the acting principal, instruction_class, instruction_source, instruction_id and outcome. In the Console, Settings then Organization then Audit log shows API activity with filters on method, status code, actor and date range. Read-back is 30 days on Free, 1 year on Growth, 3 years on Scale and set by contract on Enterprise, with export on Scale and Enterprise.

What happens if the purge returns a 503?

The operation could not finish because an external store was unavailable, and the template moves to status purge_failed. It is already excluded from matching at that point, and the call is retryable, so repeat the purge. Both the failure and the retry are recorded on the audit trail.

Does Didit charge anything to purge a biometric template?

The public price book lists no per-purge line, so an erasure request carries no separate purge fee. You pay per completed check, for example $0.33 for a full ID check and $0.05 for a 1:N face search on the current price feed. Deleting a session does not refund credits already consumed by that verification.

Is a retained face template personal data under GDPR and CCPA?

Yes. GDPR Article 4(14) treats characteristics processed with specific technical means, such as facial images, as biometric data, and Article 9(1) makes it a special category. California treats biometric information as sensitive personal information, so the delete right in §1798.105 and the right to limit in §1798.121 both reach the template. Didit's documentation states the same: the template is biometric data, not anonymous and not transient.

How long do we have to answer an erasure request?

Deadlines differ by jurisdiction, so check the primary law that governs you and put the date in the ticket before you start. What Didit gives you is the evidence: the audit entry for the purge and a template count that reads zero afterwards. Take legal advice before you rely on an extension.

Can I purge a whole cohort of templates at once?

Yes, with delete_all true plus a narrowing filter, for example status active with a retained_to date, or a single source_type. Count with GET /v3/biometric-templates/count/ using the same filters before and after the purge. Purged templates are not listed, so a count of zero confirms the sweep.

Do purged templates still take part in face matching?

No. A purge removes the template from matching and deletes the stored template. Only templates with status active that are not held_out_of_use, not past expires_at, and whose User still exists take part in matching.

Does deleting the User purge the templates?

Yes. POST /v3/users/delete/ removes the User entity and also purges its retained biometric templates. Deleting a session does not delete the User, so choose the route deliberately: a session deletion with privacy_erasure for an erasure request, User deletion when the whole relationship ends.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.