Skip to main content

Didit Delete Session API: What Gets Deleted, What Stays

Deleting a Didit session removes the session, every verification attempt, feature records, reviews, activity log and stored files. Blocklist entries, share tokens and credits survive, no webhook fires, and the parent User or.

Didit Delete Session API: What Gets Deleted, What Stays

Contents

In this guide

Jump to the part you need.

Deleting a Didit session removes the session itself, every verification attempt inside it, its feature records, reviews, activity log and stored files. It does not remove blocklist entries, revoke share tokens, refund credits, or delete the parent User or Business. This guide is for compliance and engineering teams handling erasure tickets or cleaning up test data. The delete call has no separate line in the price book, and nothing already spent comes back.

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

Delete Session at a glance: what the call removes, what it keeps, and how to finish the job
ItemAfter DELETE /v3/session/{session_id}/delete/How to finish it
Session record, decision, extracted dataDeletedNothing to do
Every verification attempt, including results replaced by a resubmissionDeletedNothing to do
Feature records: ID, liveness, face match, AML, POA, phone, email, IP, registry, documentsDeletedNothing to do
Reviews and activity logDeletedKeep your own copy first
Stored files: document images, videos, portraits, selfies, POA uploads, e-signature documents, signed PDFs, evidence PDFs, signature imagesDeleted, and media URLs issued earlier stop resolvingExport any evidence you must keep before the call
KYB child verifications: key people KYC and corporate owners KYB, recursivelyDeleted, counted in deleted_child_verificationsNothing to do
KYB verifications that are only linked, such as a reused approved KYCKeptDelete that session separately if you need to
Queued webhook deliveries and their retriesDroppedNothing to do
Webhooks already deliveredNot affectedNothing to do
Ongoing AML monitoring and KYB registry monitoring started by the sessionStoppedNothing to do
Share tokens issued for the sessionNot revoked, import then returns 400Let them expire, they cannot be revoked
Blocklist entries created from the sessionKeptDELETE /v3/lists/{list_uuid}/entries/{entry_uuid}/
Credits already consumedNot refundedBudget for the checks you ran
Parent User or Business entityKeptPOST /v3/users/delete/ or POST /v3/businesses/delete/
Deletion eventNo webhook firesRecord the deletion in your own system
Face embeddingDeleted by defaultOverride with retain_face_embeddings if your policy allows it

Start free in the sandbox at business.didit.me, no sales call. Developers driving deletions from an AI assistant can connect Didit through didit.me/developers/mcp. The KYB side of this endpoint is described on the Business Verification product page, and prices and plan terms live on didit.me/pricing.

What the Delete Session call actually does

The endpoint is DELETE https://verification.didit.me/v3/session/{session_id}/delete/, authenticated with the x-api-key header and the delete:sessions privilege. One endpoint covers both User Verification (KYC) and Business Verification (KYB) sessions: Didit resolves the id against both session types, so you do not need a different call per product. A successful call returns 200 OK with a JSON body once the deletion has completed. The endpoint no longer returns 204, and the body is where the face-biometric outcome is reported.

This is the GDPR right-to-be-forgotten route. It is the same deletion that fires when a session reaches the end of your retention window: the retention policy applies to verification inputs and outputs, derived results and operational metadata, and when a session expires it is deleted exactly as by Delete Session, including its face embedding unless you have enabled biometric-template retention. Full details of the retention windows and the biometric template setting are in the Data Retention and Deletion docs.

Operational deletion versus privacy erasure

Every call carries one of two instructions, and the difference matters at the top of any privacy workflow. The default, operational_session_delete, removes this session and follows the face retention policy of your application. privacy_erasure is the erasure instruction: it removes the session, purges every retained biometric template belonging to that person, and never keeps a new one, whatever the application policy says. Combining privacy_erasure with retain_face_embeddings: true is rejected with 400. Use privacy_erasure when the request comes from a data-subject ticket; use the default when you are cleaning up a session or closing an account for another reason.

Three ways to delete, and when the API is the right one

  • Console button. Open User verifications or Business verifications in the sidebar, find the session, click Delete at the top right and confirm. This is the right route for a one-off removal by a person.
  • Retention policy. Set a window from 1 month to 10 years in Business Console, App Settings, Data retention. A new application starts at 1 year on Free, 5 years on Growth, 10 years on Scale and unlimited on Enterprise. This is the right route for the normal lifecycle.
  • Delete Session API. This is the right route for a data-subject request that must be answered on a specific ticket, for an automated erasure pipeline, and for cleaning a named session out of production or sandbox without waiting for a retention window. This endpoint accepts an instruction_id so your ticket reference can be stored on the audit trail and any retained template.

What gets deleted, in full

The session and every verification attempt it holds are deleted, including results a resubmission replaced. That covers the decision, the extracted data, the associated feature records (ID verification, registry checks, documents, AML, IP and the rest), its reviews and activity log, and all stored files: document images, videos, portraits, selfies, POA documents, extra uploads, E-signature documents, signed PDFs, evidence PDFs and signature images.

The deletion is immediate and visible. The session disappears from /v3/sessions/ and from /v3/session/{id}/decision/, and media URLs that were issued before the call stop resolving. If you need the decision, the warnings or an evidence PDF for your own records, export them before you call the endpoint.

A session overview with its warnings in the Didit Business Console
Everything on this session page goes with the delete call: the decision, the feature results, the warnings, the activity log and the stored media.

Prerequisites

  • A Didit API key with the delete:sessions privilege, sent as the x-api-key header. A key without that scope returns 403, and a wrong, revoked or expired key returns 401.
  • The session UUID. The same id space covers KYC and KYB sessions.
  • A decision on the face embedding: follow the application policy (the default), or override it on this call.
  • A durable reference for the deletion if you work from erasure tickets: instruction_id, up to 255 characters, stored on the audit trail and on any retained template.
  • A sandbox application to rehearse on. Sandbox testing is free and unlimited on every plan, and you create one at business.didit.me.

Delete a session, step by step

  1. Confirm the session. Check the UUID against your own record, and export anything you must keep, because the session is gone immediately after the call and earlier media URLs stop resolving.
  2. Choose the face-biometric outcome. Omit the body and the application policy applies: the face embedding is deleted with the session unless you opted into biometric-template retention. To keep an image-free template, send retain_face_embeddings: true and provide face_retention_days from 1 to 3650, unless the application already sets that value. You may also provide a future face_retention_deadline as a hard expiry. For an erasure request, send deletion_instruction: "privacy_erasure" instead, which purges every retained template for that User and never retains a new one.
  3. Send the request. The default call, which deletes the session and its face embedding:
curl -X DELETE https://verification.didit.me/v3/session/<SESSION_ID>/delete/ \
-H "x-api-key: <API_KEY>"

And the same endpoint with an erasure instruction attached to your ticket reference:

curl -X DELETE https://verification.didit.me/v3/session/<SESSION_ID>/delete/ \
-H "x-api-key: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{"deletion_instruction": "privacy_erasure", "instruction_id": "dsar-2026-0142"}'
  1. Read the response body. Confirm face_retention_outcome matches what you intended, and note deleted_child_verifications for KYB sessions.
  2. Finish the parts the call does not cover. Remove blocklist entries through the Lists endpoints if the erasure must reach them, delete the parent User or Business if the person or company is leaving entirely, and close your ticket.
  3. Retry safely if a request timed out. The call is idempotent: a repeat returns 404 when there is nothing left to delete.

Expected output

A successful call returns 200 OK with this body:

{
  "session_id": "<uuid>",
  "session_number": 1024,
  "face_retention_outcome": "deleted",
  "biometric_template_uuid": null,
  "biometric_template_expires_at": null,
  "deleted_child_verifications": 0
}

Four outcomes are possible for face_retention_outcome. deleted means the session and its face embedding are gone. retained_with_user means the session is gone but an image-free biometric template with the returned biometric_template_uuid stays anchored to the User until biometric_template_expires_at, User deletion, a privacy-erasure request or an explicit purge. none means there was no face embedding to begin with, which is common for KYB sessions and document-only KYC sessions. ineligible_no_vendor_user means retention was requested but the session has no linked User, so the session and its embedding were deleted anyway.

A retained template never contains the face image, the liveness video, document data, extracted identity fields, the decision or the deleted session id. It is biometric data, tenant-scoped, used only for your duplicate-face, multi-account, biometric-authentication and list matching, and never used for model training or cross-customer fraud processing. You manage it with GET and DELETE /v3/biometric-templates/{uuid}/. It is the only biometric data that can remain after deletion, and only when you opt in.

Inputs and outputs

Every field on the Delete Session call
FieldDirectionValuesWhat it does
session_idPathUUIDThe session to delete. Works for KYC and KYB.
retain_face_embeddingsBody, optionalboolean or nullOverrides the application face retention policy for this deletion. True keeps an image-free template, false deletes the embedding, omit or null follows the application policy.
face_retention_daysBody, optionalinteger 1 to 3650Finite retention period for the template. Required when retaining, unless the application already sets a number of days.
face_retention_deadlineBody, optionalISO 8601 datetime in the futureHard expiry. The template expires at the earliest of this deadline, the day count and the application retention window.
deletion_instructionBody, optionaloperational_session_delete (default) or privacy_erasureprivacy_erasure purges every retained template for the session User and never keeps a new one.
instruction_idBody, optionalstring, max 255Your durable reference, such as an erasure ticket id. Stored on the audit trail and on any retained template.
session_numberResponseintegerThe human-readable number of the deleted session.
face_retention_outcomeResponsedeleted, retained_with_user, none, ineligible_no_vendor_userWhat happened to the face biometric data.
biometric_template_uuidResponseUUID or nullThe retained template, when one exists.
biometric_template_expires_atResponseISO 8601 or nullWhen the retained template is deleted. Null when no template is retained.
deleted_child_verificationsResponseintegerFor KYB, how many verifications it created were deleted with it. Always 0 for a KYC session.

Failure cases and recovery

What a failed Delete Session call means and what to do next
ResponseCauseRecovery
404 Not FoundThe session was already deleted, or the id is unknown.Treat it as done. A retry after a timeout lands here when the first call completed.
400privacy_erasure combined with retain_face_embeddings: true.Drop the retention flag. An erasure request cannot keep a template.
400Retention requested without a period and the application sets no days.Send face_retention_days between 1 and 3650, or set the retention policy in the Console first.
400face_retention_deadline is not in the future.Send a future ISO 8601 datetime.
401The API key is wrong, revoked or expired.Issue a fresh key in the Business Console.
403The x-api-key header is missing, or the scoped key lacks the delete privilege.Use a key with delete:sessions.
400 on share importA share token points at a session you just deleted.Expected. The import returns {"share_token": ["Original session does not exist."]} and there is nothing to recover.

Status codes and body shapes for the rest of the API are listed in the API errors reference.

What survives, and how to finish the job

Blocklist entries

Entries created from the session are not removed. They stay in the system blocklist and keep declining future matches at verification or screening time. Manage them with the Lists API: list them with GET /v3/lists/{list_uuid}/entries/ and remove one with DELETE /v3/lists/{list_uuid}/entries/{entry_uuid}/. Removing an entry from a system blocklist also unblocks the underlying entity, so do that deliberately and not as part of a bulk erasure script.

Share tokens

Share tokens issued for the session are not revoked, and they cannot be revoked: a token is a signed JWT that simply expires, at most 24 hours after it was minted. Nothing is left for it to import. If the receiving application redeems it after your delete, the call returns 400 with Original session does not exist. The clone and import behaviour is documented under Reusable KYC.

The parent User or Business

Deleting a session never deletes the entity behind it. If the person or company is leaving for good, call POST /v3/users/delete/ or POST /v3/businesses/delete/. Deleting the User also purges its retained biometric templates, and if the User profile portrait came from this session, the portrait is removed with it.

Webhooks

Deliveries still queued for the session and their retries are dropped; webhooks already delivered are untouched. No webhook fires for the deletion itself, so your own system has to write the deletion event into your audit trail. Event names and signing are in the webhooks documentation.

Monitoring

Ongoing AML monitoring and KYB registry monitoring that the deleted verifications started stop. That matters for a rejected applicant who was being re-screened daily: once the session is gone, the re-screening stops with it.

AML screening result for a session in the Didit Business Console
The AML screening record on a session is deleted with it, and the ongoing monitoring that screening started stops at the same moment.

KYB sessions: child verifications versus linked ones

A KYB session is deleted together with the verifications it created for its key people and corporate owners, recursively, and the count comes back in deleted_child_verifications. A verification it only links to is not deleted. The common case is a reused, already approved KYC session: the business check points at that existing verification, so deleting the business does not destroy the person's identity record.

That split is documented, not assumed: deleting the KYB session removes the checks it created and leaves intact a verification it only linked to, such as a reused approved KYC that the person may still need for another relationship with you.

Didit Business Console: KYB key people linked to KYC verifications
Key people created by the KYB session are deleted with it. A KYC session that is only linked stays, which is why the response separates the two.

Delete Session is not a billed check. There is no line for it in the price book, and the call itself adds nothing to your invoice. What you already spent on the verification is not returned: credits already consumed by the verification are not refunded when you delete the session.

The charges that stay on the account are the ones you incurred before the delete. A full ID check is $0.33. Business verification starts at $2.00 per company, plus $0.20 person AML for each UBO or officer and $0.33 for each linked KYC. AML screening is $0.20 per check, ongoing AML monitoring is $0.07 per user per year, and company registry monitoring is $2.00 per company per year. Deleting a session stops the monitoring it started, but the delete call itself issues no credit, and plan credit and top-up rules are on didit.me/pricing.

On review boundaries: a key with delete:sessions can call the endpoint directly and remove an approved session in one call. The Console button asks for confirmation instead. Any human review that was already performed, and any decision you exported to your own case management system, stays where it is; the session's reviews and activity log inside Didit do not survive the deletion.

How Didit billing works: credits, auto-recharge and volume discounts
Billing is per completed check from prepaid credit. Deleting a session does not reverse the check that was already paid for.

Worked cost example

An application deletes 900 KYC sessions and 60 KYB sessions in one month, all of them already completed and paid for. Here is what the month cost, and what the deletions add.

  • KYC: 900 x $0.33 = $297.00
  • KYB company checks at the $2.00 entry price: 60 x $2.00 = $120.00
  • Person AML for two UBOs per business: 120 x $0.20 = $24.00
  • Linked KYC for those same 120 people: 120 x $0.33 = $39.60
  • Verification total already billed: $297.00 + $120.00 + $24.00 + $39.60 = $480.60
  • Separate assumed annual charge, outside that total: registry monitoring bought for one year for the same 60 companies, 60 x $2.00 = $120.00. This example assumes that monitoring was purchased and billed in the month; the delete call neither creates nor reverses it.
  • Delete calls: 960 requests with no price-book line = $0.00
  • Refunded on deletion: $0.00

So the month carries $480.60 of verification work, plus $120.00 if you also bought a year of registry monitoring for those 60 companies. The 60 KYB deletions stop the registry monitoring those verifications started, so the next renewal carries no $2.00 per company charge for them, and the 900 KYC deletions stop any ongoing AML monitoring on those people at $0.07 per user per year. The savings are forward-looking only.

Sources

The next step is to rehearse the call in the sandbox, which is free on every plan and needs no sales call: create an application at business.didit.me, run one test session, then delete it with the endpoint above and check the face_retention_outcome in the response.

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

What happens when you delete a Didit verification session?

The session and every verification attempt it holds are deleted, including results a resubmission replaced. That covers the decision, extracted data, feature records, reviews, activity log, and all stored files such as document images, videos, selfies, POA documents and signed PDFs. The session disappears immediately from the session list and the decision endpoint, and earlier media URLs stop resolving.

What is the difference between operational session deletion and privacy_erasure?

operational_session_delete is the default: it removes the session and follows your application face retention policy. privacy_erasure removes the session and also purges every retained biometric template for that person, and it never keeps a new one regardless of the policy. Combining privacy_erasure with retain_face_embeddings: true returns 400.

Does deleting a session remove blocklist entries created from it?

No. Blocklist entries created from the session stay in place and keep declining future matches. They are managed separately through the Lists API, where removing an entry from a system blocklist also unblocks the matching entity.

Are credits refunded when I delete a Didit session?

No. Credits already consumed by the verification are not refunded, and the delete call itself has no price-book line. Deleting a session after approval does not return the $0.33 KYC check or any KYB or AML charge you already incurred.

Does a webhook fire when a session is deleted?

No webhook fires for the deletion itself. Deliveries still queued for the session, and their retries, are dropped, while webhooks already delivered are not affected. If your audit trail needs a deletion event, your own system has to record it.

What happens to share tokens after the session is deleted?

Share tokens are not revoked. They cannot be revoked at all, because a token is a signed JWT that simply expires, at most 24 hours after it was minted. Redeeming one after the delete returns 400 with the message Original session does not exist.

Does deleting a KYB session delete the key people verifications?

Yes for verifications the KYB session created: key people KYC and corporate owners KYB are deleted with it, recursively, and the response reports how many in deleted_child_verifications. A verification it only links to, such as a reused and already approved KYC, is not deleted.

Does deleting a session delete the User or Business profile?

No. The parent User or Business entity is kept. Use POST /v3/users/delete/ or POST /v3/businesses/delete/ for the entity itself. Deleting the User also purges its retained biometric templates, and removes the profile portrait if it came from the deleted session.

Is the Delete Session API idempotent, and what does a second call return?

It is idempotent in effect. The first successful call returns 200 OK with a body describing the face-biometric outcome, and any repeat call for the same session returns 404 because there is nothing left to delete. Treat that 404 as confirmation that the session is gone, not as an error.

Does deleting a session stop AML monitoring and registry monitoring?

Yes. Ongoing AML monitoring and KYB registry monitoring started by the deleted verifications stop. That is the intended behaviour when an applicant is rejected and erased. Future re-screening charges for that record stop, while charges already consumed are not refunded.

How do I delete a session from the Didit Console instead of the API?

Open User verifications or Business verifications in the sidebar, search or filter for the target session, then click Delete at the top right and confirm. The Console provides manual session deletion with the same documented deletion effects, so the same rules apply to blocklist entries, share tokens, credits and the parent entity.

Can I delete the session but keep the face embedding?

Only if your application policy allows biometric-template retention. Send retain_face_embeddings: true with face_retention_days between 1 and 3650, unless the application already sets that value, or set the policy in Business Console, App Settings, Data retention. The retained template is image-free and tenant-scoped, and it stays biometric data, so enable it only when your privacy notice covers it.

What happens to document images and signed PDFs after deletion?

They are deleted with the session, along with document videos, portraits, selfies, POA uploads, evidence PDFs and signature images. Media URLs that were issued before the call stop resolving, so export anything you need to keep beforehand.

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.