---
title: "Remove an allow or deny list from an API key"
method: DELETE
path: "/v1/accounts/{id}/api-keys/{keyId}/lists/{mode}"
tags: ["Accounts"]
---

# Remove an allow or deny list from an API key

`DELETE /v1/accounts/{id}/api-keys/{keyId}/lists/{mode}`

## Request

- Base URL: `https://api.honkio.ca`
- URL: `https://api.honkio.ca/v1/accounts/{id}/api-keys/{keyId}/lists/{mode}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Requires `api_keys:m`.

## Path parameters

- `id` string, required
- `keyId` string, required
- `mode` 'allow' | 'deny', required

## Response `204`

Unassigned (also when nothing was assigned).

## Other responses

- `401`: Missing, invalid, revoked or expired API key.
- `402`: The account has no balance, or a LIVE key was used before the first top-up.
- `403`: FORBIDDEN (not your account), LIVE_KEY_REQUIRED (a test key changing a live key), or KEY_FENCED (a fenced key changing its own or any other key's lists).
- `404`: NOT_FOUND: no such resource on this account.
- `422`: VALIDATION_ERROR: the request failed validation; details names the fields.
- `429`: Rate limit reached: 100 requests per second per account, or a route-specific limit (Retry-After set where one applies).
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/honkio/apis/honkio-api.md) · [All operations](https://skmtc.dev/honkio/apis/honkio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/honkio/apis/honkio-api/revisions/ce4ed3fe9691?raw)
