# Deletions

> Kontiga is document fraud detection by Bynn Intelligence for insurers, letting agents, lenders and HR screening teams: every document is compared with a proprietary library of more than 300 million original documents, gathered over 20 years.

Documentation index: https://kontiga.com/llms.txt

Section: Reference. URL: https://kontiga.com/docs/deletions

Deleting a document or a person answers at once with a deletion request. The request is pending while every copy of the files and everything read from them is removed, and completed once nothing of them is left. Read it back by its id.

Updated December 1, 2026

## How a deletion runs

1. [Delete a document](https://kontiga.com/docs/documents#delete-a-document) or [delete a person](https://kontiga.com/docs/people#delete-a-person). The answer names the deletion request: `del_` and 32 hex digits.
2. The document leaves your lists at once, and reading it answers `404`. Its checks stop if they were still running, and it is not billed if it had no result yet.
3. Its files, every stored version of them, its pages, the fields read from it and its findings' proof are removed, normally within a minute. A storage that does not answer is tried again for up to 24 hours.
4. The request turns `completed` once nothing of them is left, and a `document.deleted` event is sent to your webhooks.

Your workspace's retention period deletes documents the same way when their time is up, without a request of yours: the event says `retention` as its reason.

## The deletion object

- `id` (string): The request's id: `del_` and 32 hex digits.
- `object` (string): Always `deletion`.
- `subject` (object): What it deletes: `object` (`document` or `person`) and its `id`.
- `state` (enum): `pending` while anything of it is still being removed, `completed` once every copy is gone. A person's deletion is `failed` when storage still had not removed some files after 24 hours: `not_removed` counts them, and the person stays out of search and matching.
- `requested_at` (string): When it was asked.
- `requested_by` (object): Who asked: `kind` (`member`, `api_key`, or `retention` when the retention period did) and their `name`.
- `completed_at` (string): When the last copy went; `null` while pending.
- `deleted` (array): What it removes, in plain words.
- `kept` (array): What stays: a record that the subject existed, and what the checks learned from it, which holds no copy of the file.
- `reason` (string): A person's deletion: the reason given, kept until it completes, then `null`.
- `removed` (object): A person's deletion: what went so far, a count by kind. The kinds are `profile`, `identifiers`, `timeline_entries`, `notes`, `facts`, `documents`, `files`, `requests`, `cases`, `sessions`, `verifications`, `screenings` and `links`; a kind with nothing removed is left out.
- `not_removed` (object): A person's deletion: what is still there, a count by the same kinds (files a storage has not removed yet).

## Read a deletion request

Where a deletion stands: what it deletes, who asked and when, and once every copy is gone, what went and what stays.

`GET /v1/deletions/{deletion_id}`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga deletions get <deletion_id>`. MCP tool: `get_deletion`.

**Parameters**
- `deletion_id` (id (del_), required): The request to read. Another workspace's, or one of the other mode, answers `404`. In the path.

**Returns** deletion: The deletion request, pending or completed, with what went and what stays.

API:

```bash
curl -X GET https://api.kontiga.com/v1/deletions/del_0193f6c2a7d84b1e9f3a2c5d6e7f8091 \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga deletions get del_0193f6c2a7d84b1e9f3a2c5d6e7f8091
```

MCP tool `get_deletion`:

```json
{
  "name": "get_deletion",
  "arguments": {
    "deletion_id": "del_0193f6c2a7d84b1e9f3a2c5d6e7f8091"
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.deletions.get("del_0193f6c2a7d84b1e9f3a2c5d6e7f8091");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.deletions.get("del_0193f6c2a7d84b1e9f3a2c5d6e7f8091")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Deletions.Get(ctx, "del_0193f6c2a7d84b1e9f3a2c5d6e7f8091")
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.deletions().get("del_0193f6c2a7d84b1e9f3a2c5d6e7f8091");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Deletions.GetAsync("del_0193f6c2a7d84b1e9f3a2c5d6e7f8091");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->deletions->get('del_0193f6c2a7d84b1e9f3a2c5d6e7f8091');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.deletions.get("del_0193f6c2a7d84b1e9f3a2c5d6e7f8091")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .deletions()
    .get("del_0193f6c2a7d84b1e9f3a2c5d6e7f8091".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "del_0193f6c2a7d84b1e9f3a2c5d6e7f8091",
  "object": "deletion",
  "subject": { "object": "document", "id": "doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a" },
  "state": "completed",
  "requested_at": "2026-11-28T09:14:02Z",
  "requested_by": { "kind": "api_key", "name": "Loan origination server" },
  "completed_at": "2026-11-28T09:14:31Z",
  "deleted": [
    "The file and its pages",
    "The fields read from it",
    "Its findings, scores and report",
    "The copies kept to improve the checks"
  ],
  "kept": [
    "A record that it existed, with its id and when it was deleted",
    "What the checks learned from it, which holds no copy of the file"
  ]
}
```

While its files are still being removed:

```json
{
  "id": "del_0193f6c2a7d84b1e9f3a2c5d6e7f8091",
  "object": "deletion",
  "subject": { "object": "document", "id": "doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a" },
  "state": "pending",
  "requested_at": "2026-11-28T09:14:02Z",
  "requested_by": { "kind": "api_key", "name": "Loan origination server" },
  "completed_at": null,
  "deleted": [
    "The file and its pages",
    "The fields read from it",
    "Its findings, scores and report",
    "The copies kept to improve the checks"
  ],
  "kept": [
    "A record that it existed, with its id and when it was deleted",
    "What the checks learned from it, which holds no copy of the file"
  ]
}
```
