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.

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.
| Question | Answer |
|---|---|
| Who acts on the request | You, as controller. Didit acts as data processor and purges when you instruct it. |
| Legal hook | GDPR Article 17(1) right to erasure; California Civil Code §1798.105 right to delete |
| Purge one person when a session still exists | Delete 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 gone | POST /v3/biometric-templates/delete/ with delete_all true and vendor_user_uuid |
| Purge a known list | POST /v3/biometric-templates/delete/ with template_uuids |
| Purge a whole User | POST /v3/users/delete/, which also purges that User's retained templates |
| What does not purge | Setting face_retention_policy back to delete_with_session |
| Evidence | Every 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.
| Regime | Primary text | Applies from | Who is subject | Provision that reaches a retained template |
|---|---|---|---|---|
| GDPR, EU and EEA | Regulation (EU) 2016/679, published OJ L 119, 4.5.2016 | 25 May 2018, under Article 99(2) | Controllers and processors handling personal data of people in the EU and EEA | Article 17(1) erasure; Articles 4(14) and 9(1) biometric data; Article 5(1)(e) storage limitation |
| CCPA, as amended by the CPRA, California | California Civil Code §1798.100 et seq. | 1 January 2020, CPRA amendments from 1 January 2023 | Businesses 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, Illinois | 740 ILCS 14 | Enacted 2008 | Private 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.

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.
| Field | What it tells you |
|---|---|
uuid | Template id, the unit a single purge takes |
vendor_user_uuid | The User the template is anchored to. One User can hold several templates. |
vendor_data | The User's current vendor_data, resolved live. Free-form string, may be null. |
source_type | session_delete, automatic_retention or backfill |
retention_policy and retention_override | Whether the application policy or a per-call override created it |
retained_at and expires_at | When it started and when it dies on its own |
retained_by, retained_by_type | Application UUID for an API key, Console member id, or a service principal |
instruction_class, instruction_source, instruction_id | Whether this was an operational session delete or a privacy erasure, and your own reference |
status | pending, active, expired, held_out_of_use, purge_pending, purge_failed, purged |

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.
| Route | Call | Scope | Use it when |
|---|---|---|---|
| Single template | DELETE /v3/biometric-templates/{uuid}/ | One template, answers purged or already_purged | You inspected one record and want it gone |
| Known list | POST /v3/biometric-templates/delete/ with template_uuids | Every uuid you name, one result each | You collected the uuids from a list or count call |
| Bulk with a filter | POST /v3/biometric-templates/delete/ with delete_all true plus filters | Every template matching the filters | One User with several templates, or a cohort sweep |
| The owning User | POST /v3/users/delete/ | The User entity and its retained templates | The person is leaving your system entirely |
| Session deletion marked as erasure | Any session delete with deletion_instruction: privacy_erasure | That session plus every retained template for its User | A data subject files an erasure request and you still hold a session |
| Expiry | Reaching expires_at | That template | Always 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.
| Aspect | delete_all on the template endpoint | privacy_erasure on a session deletion |
|---|---|---|
| What it deletes | Templates only. Sessions are untouched. | The session and all of its data, plus every retained template for that User |
| Scope control | Filters: vendor_data, vendor_user_uuid, status, source_type, retained_from, retained_to | The session's User, all of it. You cannot narrow it. |
| Retains a new template | No | Never, regardless of the application policy |
| Reference you can carry | No instruction_id field on this call | instruction_id, up to 255 characters, for example your ticket id |
| Fails when | No selector, or invalid filter values, returns 400 | Combine it with retain_face_embeddings: true and the call is rejected with 400 |
| Right answer for | A person whose sessions are already deleted, or a cohort sweep with a documented filter | One 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.
- Find the User. Search
GET /v3/users/?search=on the email or onvendor_data, and keep thedidit_internal_idas your anchor. - Count the templates with
vendor_user_uuidset to that id. The answer is 3, and you write 3 in the ticket. - List them to confirm all three are
activeand none isheld_out_of_use, so the matching impact of the purge is understood. - Check whether any session still exists. If one does, delete it with
deletion_instruction: privacy_erasureandinstruction_id: dsar-2026-0142. That single call purges all three templates and leaves nothing behind. - If no session exists, call
POST /v3/biometric-templates/delete/withdelete_alltrue and thatvendor_user_uuid, then read the three outcomes. - Count again. Zero, because purged templates are not listed.
- 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.
| Element | Values you will see |
|---|---|
| Acting principal | Application UUID for an API key, a Console member id, or a service: principal |
instruction_class | operational_session_delete or privacy_erasure |
instruction_source | api, console, privacy_erasure, explicit_template_purge, vendor_user_delete, expiry, automatic_retention, backfill, reconciliation, migration, system |
instruction_id | Your own reference, or a Didit-generated one |
| Outcome | Purged, 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
| Obligation | Legal hook | Didit capability |
|---|---|---|
| Erase personal data without undue delay | GDPR Article 17(1) | Single purge, delete_all bulk purge, User deletion, and privacy_erasure on any session deletion |
| Keep data no longer than necessary | GDPR 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 compliance | GDPR Articles 5(2) and 30 | Audit 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 processing | GDPR Article 9(2)(a) | Retention is opt-in. Enable it only when your controller instruction and privacy notice cover it. |
| Processor assists the controller | GDPR 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 information | CCPA §1798.105 and §1798.121 | Same endpoints. held_out_of_use exists as a template status, and a purge removes the template from matching entirely. |
| Security of processing | GDPR Article 32 | SOC 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_atis gone, but the record showsexpiryas 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_typecan bebackfill, andinstruction_sourceincludesmigrationandreconciliation. Templates created outside a normal session deletion still need purging, anddelete_allwith a date window catches them. - No User, no anchor. If a session had no linked User, a retention request returns
ineligible_no_vendor_userand nothing is kept. There is nothing to purge for that session. - Open question: how long the instruction reference is retained.
instruction_idis 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
- Confirm whether retention is on at all. Check App Settings, Data retention, and the
face_retention_policyvalue, before you promise a subject anything. - Keep the User id on every ticket.
vendor_user_uuidis the anchor that makes a bulk purge possible. - Count with
GET /v3/biometric-templates/count/and record the number in the ticket before you purge. - Send
privacy_erasurewith your ticket id ininstruction_idas the default path when a session exists. - Fall back to
delete_allwithvendor_user_uuidwhen no session exists, and never senddelete_allwithout a filter. - Read every outcome in the response.
already_purgedis a pass, not an error. - Count again and attach the zero.
- Retry any 503. The template is already out of matching, and both attempts are recorded.
- 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.
- 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
- Didit docs, Biometric Templates API overview: https://docs.didit.me/management-api/biometric-templates/overview, read November 26, 2026
- Didit docs, Delete Session API: https://docs.didit.me/sessions-api/delete-session, read November 26, 2026
- Didit docs, Data Retention and Deletion: https://docs.didit.me/console/data-retention, read November 26, 2026
- Didit docs, Audit Logs: https://docs.didit.me/console/audit-logs, read November 26, 2026
- Didit docs, List Users API: https://docs.didit.me/management-api/users/list, read November 26, 2026
- Didit docs, Security and Compliance: https://docs.didit.me/getting-started/security-compliance, read November 26, 2026
- Didit pricing and the live price feed: https://didit.me/pricing/ and https://docs.didit.me/getting-started/pricing, read November 26, 2026
- EUR-Lex, Regulation (EU) 2016/679 page: https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng, read November 26, 2026
- California Civil Code, Title 1.81.5, §1798.100 et seq., CCPA as amended by the CPRA, read November 26, 2026
- Illinois Biometric Information Privacy Act, 740 ILCS 14, read November 26, 2026
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.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

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.
Your obligations · 3 regions
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.
- 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.
Didit Academy


