# Removes a person.

`DELETE /palm/v1/people/{subjectReference}`

Removes every hand of the person; from the moment of the request none is matched again. The answer is `202` while the engine is still deleting and `200` once it has confirmed, and Bioprints keeps retrying the engine's delete itself, so you do not call again. Once every hand is removed, the reference is free to enroll again, unfrozen.

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `Idempotency-Key` | string | yes | The caller's own name for this request: printable ASCII with no spaces. Sent again with the same request, it replays the first success. Length 1–200. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `subjectReference` | string | yes | Your reference for the person: 1 to 64 characters with no `/`, not `.` or `..`, matched exactly, case included. |

## Responses

**200** Removed, confirmed by the engine (`application/json`)

| Field | Type | Required | Description |
|---|---|---|---|
| `subjectReference` | string | yes | Your reference for the person. |
| `hands` | array of object | yes | The person's hands; a revoke's answer lists the hands that call removes. |
| `hands[].hand` | string: `left`, `right` | yes | Which hand this is. |
| `hands[].state` | string: `enrolled`, `frozen`, `removing`, `removed` | yes | `enrolled`, `frozen` or `removing`; a revoke's answer also shows `removed`. |
| `hands[].enrolledAt` | string (date-time) | yes | When the hand was enrolled, in UTC. |

**202** Removing; never matched again from now (`application/json`)

| Field | Type | Required | Description |
|---|---|---|---|
| `subjectReference` | string | yes | Your reference for the person. |
| `hands` | array of object | yes | The person's hands; a revoke's answer lists the hands that call removes. |
| `hands[].hand` | string: `left`, `right` | yes | Which hand this is. |
| `hands[].state` | string: `enrolled`, `frozen`, `removing`, `removed` | yes | `enrolled`, `frozen` or `removing`; a revoke's answer also shows `removed`. |
| `hands[].enrolledAt` | string (date-time) | yes | When the hand was enrolled, in UTC. |

**400** - `request_invalid`: The body cannot be read, a required field is missing or `null`, or a value is not one this call takes.
- `idempotency_key_missing`: No `Idempotency-Key` header was sent.
- `idempotency_key_invalid`: The `Idempotency-Key` is not printable ASCII, holds a space, or is over 200 characters. (`application/problem+json`)

The error body; see [Error codes](https://docs.bioprints.io/errors.md).

**401** - `key_invalid`: No key, a key Bioprints does not know, a revoked or expired key, or a call from an address the key is not allowed from; every key problem answers this same code. (`application/problem+json`)

The error body; see [Error codes](https://docs.bioprints.io/errors.md).

**403** - `tenant_suspended`: The key is valid, and Bioprints has suspended its tenant. (`application/problem+json`)

The error body; see [Error codes](https://docs.bioprints.io/errors.md).

**404** - `subject_not_found`: No live person has this reference. (`application/problem+json`)

The error body; see [Error codes](https://docs.bioprints.io/errors.md).

**409** - `tenant_busy`: Another enroll or revoke of your tenant held on longer than this call could wait; retry after `Retry-After`.
- `idempotency_key_in_flight`: A call with the same key and request is still running; retry after `Retry-After`. (`application/problem+json`)

Header `Retry-After`: Seconds to wait before trying again

The error body; see [Error codes](https://docs.bioprints.io/errors.md).

**422** - `idempotency_key_mismatch`: The key was already used with a different body or path. (`application/problem+json`)

The error body; see [Error codes](https://docs.bioprints.io/errors.md).

Every refusal code is listed in [Error codes](https://docs.bioprints.io/errors.md).

Source: https://docs.bioprints.io/api/revoke-person
