Skip to main content
POST
curl

Overview

Deletes one or more User entities. The user records are removed permanently. Their verification sessions are not covered by this endpoint and survive with their link to the user cleared; delete them with Delete Session or Batch Delete Sessions. Transactions are not covered either; delete them with Batch Delete Transactions.

When to use it

  • Right-to-be-forgotten requests (GDPR / CCPA).
  • Clean-up of test users during QA.
  • Deprovisioning users removed from your own platform.

Notes

  • Accepts a list of vendor_data values, a list of didit_internal_id values, or delete_all: true. The two lists can be combined and are OR’d.
  • This endpoint never narrows delete_all with filters, and the Console’s filter_* batch params are rejected with a 400, so a narrowed intent does not delete every user in the application. The exceptions are filter_has_approved_sessions and filter_has_declined_sessions: they are neither rejected nor applied, so do not send them with delete_all.
  • All-or-nothing: if the deletion cannot be completed for the users you selected, none of them is deleted and you can safely repeat the same request.
  • Idempotent — re-sending the same list returns deleted: 0 after the first run.
  • Returns only a count of what was deleted, not a per-item report. Values that matched nothing are skipped silently. Send a de-duplicated list if you want to compare deleted against the number of identifiers you sent, since a repeated identifier is only counted once.
  • No webhook is emitted for a deletion. Webhooks fire on user status and data changes, not on delete — so an integration that needs a deletion signal must record it on its own side.
  • Verification sessions linked to the user are NOT deleted by this endpoint. They remain, with their link to the user cleared, so their documents, faces and media are only removed once you delete the sessions themselves.
  • retain_face_embeddings (boolean, default false) and face_retention_days (1 to 3650) are your explicit choice to keep one image-free biometric template per deleted person for duplicate detection, for that many days. Nothing else about the person is kept. Omit both to delete the templates with the users. face_retention_days without retain_face_embeddings: true, or retain_face_embeddings: true without face_retention_days, returns 400 on face_retention_days.
  • Unless you set retain_face_embeddings to true, retained biometric templates anchored to the user ARE purged, before the user is deleted. If a template cannot be purged because a biometric store is unavailable, the call returns 503, no user in the request is deleted, and repeating the request finishes the job.

Data in a finalized regulatory report

If any selected person is part of a case with a finalized regulatory report, the whole request returns 409 and nothing is deleted. The response uses code: in_filed_report and names each report, so you can open it in the Console:
Delete each report with Delete Report, then repeat the same request. Removing that person from the list is not enough if another selected person is still in a report.

A deletion already in progress

A person is deleted by one request at a time. If another request is still deleting one of the selected people, this request waits a few seconds at most, then returns 409 with code: subject_deletion_in_progress and deletes nothing:
Repeat the same request once the other deletion has finished. A person it already deleted no longer matches, so the repeat deletes only what is left.

Permissions

Any active API key of the application can call this endpoint. Didit API keys are application-scoped, not role-scoped: the Console’s roles and permissions (delete:users and the rest) decide what a person can do in the Console, and are not evaluated for Management API traffic. Control who can call this endpoint by controlling who can read the application’s API key.

Authorizations

x-api-key
string
header
required

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

Headers

Idempotency-Key
string

Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.

Required string length: 1 - 255

Body

application/json

Provide vendor_data_list, didit_internal_id_list, or delete_all: true. The two lists can be combined and are OR'd. When delete_all is true it takes precedence and both lists are ignored.

vendor_data_list
string[]

Your own identifiers to delete, matched exactly as sent.

didit_internal_id_list
string<uuid>[]

Didit internal user IDs to delete - the didit_internal_id returned by the create and get endpoints.

delete_all
boolean
default:false

If true, deletes every user in the application.

retain_face_embeddings
boolean
default:false

Your explicit choice to keep one image-free biometric template of each deleted person for duplicate detection, for face_retention_days. Everything else about the person is deleted. Omit it, or send false, to delete the templates with the users. When true, face_retention_days is required.

face_retention_days
integer

Number of days the image-free biometric template is kept when retain_face_embeddings is true. Required with it, and rejected without it with a 400 on face_retention_days.

Required range: 1 <= x <= 3650
Example:

365

Response

Users deleted. Returns the number of users actually deleted.

deleted
integer

Number of users deleted (excludes vendor_data values that didn't match anything).

Last modified on November 3, 2026