# Delete a Bre-B key

`DELETE /v1/bre-b/keys/{key}` · [Sandbox · coming soon]

> Base URL: Sandbox `https://sandbox.zulu.com.co/v1`
>
> Not in production yet: it arrives with this same signature. Try it in the sandbox.

Deregisters one of your keys: it stops receiving transfers and frees its slot. QR codes tied to it stop taking payments. Send the key URL-encoded (`%40acmepagos`).

## Authentication

`Authorization: Bearer <access_token>` (401 when missing or expired) and `X-API-Key` (403 when missing or not matching).

## Request

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `key` | string | required | The key, URL-encoded (`@acme` → `%40acme`; use `encodeURIComponent`). |

## Responses

### 204

Done; no content.

No content.

### 401

The access token is missing, invalid or expired.

### 403

The `X-API-Key` is missing, invalid or does not match the token.

### 404

The resource does not exist.

### 429

Too many requests: wait the seconds in `Retry-After`.

### 500

Internal error.

## Errors

| HTTP | error | cause | Description |
| --- | --- | --- | --- |
| 401 | — | `Unauthorized` | The `Authorization: Bearer <access_token>` header is missing, or the token is invalid or expired. |
| 403 | — | `Forbidden` | The `X-API-Key` is missing, unknown, revoked or does not belong to the credentials of the token. |
| 404 | `NotFoundApiError` | `bre-b key "%s" not found` | The key does not exist (in your workspace, or in the Bre-B directory when resolving it). Test data: `@notfound`. |
| 429 | — | `Too Many Requests` | You exceeded the request limit of your credentials. Wait the seconds in `Retry-After`. |
| 500 | `InternalServerApiError` | `[code:1] unexpected error` | Internal error. On operations that move money, check the state before retrying so the operation is not duplicated. |

## Examples

### Delete one of your keys

```bash
curl -X DELETE https://sandbox.zulu.com.co/v1/bre-b/keys/%40acmepagos \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"
```

**Response 204**

No content.

### A key that is not yours

```bash
curl -X DELETE https://sandbox.zulu.com.co/v1/bre-b/keys/%40otrallave \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"
```

**Response 404**

```json
{
  "error": "NotFoundApiError",
  "cause": "bre-b key \"@otrallave\" not found"
}
```
