Skip to main content
POST
curl

Overview

Deletes one or more Business entities, the companies in your directory, and everything about them. Each company is removed permanently together with its Business Verification (KYB) sessions, the verifications those sessions created and the transactions only that company took part in. There is no undo. This endpoint deletes companies, not sessions. To delete a KYB session and keep its company, use Delete Session. The Console’s companies delete does the same as this endpoint; deleting KYB sessions from the Console’s sessions list deletes those sessions and the verifications they created, and keeps the company.

When to use it

  • Right-to-be-forgotten requests.
  • Clean-up of test businesses during QA.
  • Deprovisioning businesses removed from your own platform.

Notes

  • Accepts a list of vendor_data values or didit_internal_id values.
  • Idempotent — deleting an already-deleted business is a no-op.
  • Returns counts, not a per-item report: deleted is the number of companies, deleted_verifications the verification sessions deleted with them, and deleted_transactions the transactions deleted with them. Values that matched nothing are skipped silently.
  • Deleted with each company:
    • its KYB sessions, with their registry data, documents and AML hits, and the verifications they created for its key people and corporate owners. A verification a KYB session only links to, such as an already approved KYC it reused, is not deleted;
    • the transactions only that company took part in, with their documents, alerts and travel rule transfers;
    • the cases only about it, with their notes and draft reports;
    • the list entries about it, in every list, blocklists included;
    • its wallet addresses, events, notes, tags, documents and files.
  • A transaction shared with another person or company stays, with this company erased from it. A case about someone else stays and only loses its links to what was deleted.
  • Another organization’s records, such as a travel rule copy already delivered to it, are not affected.

Data in a finalized regulatory report

If any selected company 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:
Delete each report with Delete Report, then repeat the same request.

A deletion already in progress

A company is deleted by one request at a time. If another request is still deleting one of the selected companies, 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 company it already deleted no longer matches, so the repeat deletes only what is left.

Permissions

Role must grant delete:businesses. Typically reserved for OWNER and ADMIN.

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. Precedence when several are sent: delete_all > vendor_data_list > didit_internal_id_list (only the highest-precedence selector is used).

vendor_data_list
string[]

Your own identifiers to delete, matched exactly as sent.

didit_internal_id_list
string<uuid>[]

Didit's internal UUIDs (didit_internal_id) to delete.

delete_all
boolean
default:false

If true, deletes every business in the application. Cannot be combined with the list selectors.

Response

Businesses deleted. Returns how many companies were deleted, and how many verification sessions and transactions went with them.

deleted
integer
required

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

deleted_verifications
integer
required

Verification sessions deleted with the companies: their KYB sessions and the verifications those sessions created for key people and corporate owners.

deleted_transactions
integer
required

Transactions deleted with the companies: those no other person or company took part in.

Last modified on November 30, 2026