# Remove Destination

Removes a host from your account's destination allowlist by its `id` (from [List Destinations](/reference/pci-proxy/list-destinations)). Removal takes effect immediately: the next [forward proxy](/reference/pci-proxy/invoke-forward-proxy) request to that host is rejected with `403 DESTINATION_NOT_ALLOWED`. See the [Destination Allowlist guide](/docs/security-and-compliance/pci-proxy/allowlist).

**DELETE** `/pci-proxy/destinations/{id}`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Removes a host from your account's allowlist. This takes effect immediately: the next proxy request to that host is rejected with `403 DESTINATION_NOT_ALLOWED`.

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `X-Account-Code` (string)
  Required if the destination was registered with an `account_id`: pass that same `account_id`. Without it, an account-scoped destination is treated as not found.

## Path parameters

- `id` (string, required)
  The `id` (UUID) of the destination to remove, as returned by [List Destinations](/reference/pci-proxy/list-destinations).

## Responses

### 204

The destination was removed. No response body.

### 400

The `id` path parameter is not a valid UUID.

- `code` ("NOT_AUTHENTICATED" | "AuthenticationFail" | "INVALID_REQUEST" | "INVALID_HOSTNAME" | "INVALID_ACCOUNT_ID" | "DESTINATION_EXISTS" | "NOT_FOUND" | "INTERNAL_ERROR")
  Machine-readable error code.
- `messages` (string[])

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "string"
  ]
}
```

### 401

Authentication failed. Missing or invalid API credentials.

- `code` ("NOT_AUTHENTICATED" | "AuthenticationFail" | "INVALID_REQUEST" | "INVALID_HOSTNAME" | "INVALID_ACCOUNT_ID" | "DESTINATION_EXISTS" | "NOT_FOUND" | "INTERNAL_ERROR")
  Machine-readable error code.
- `messages` (string[])

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "string"
  ]
}
```

### 404

No destination with that `id` is registered for your account.

- `code` ("NOT_AUTHENTICATED" | "AuthenticationFail" | "INVALID_REQUEST" | "INVALID_HOSTNAME" | "INVALID_ACCOUNT_ID" | "DESTINATION_EXISTS" | "NOT_FOUND" | "INTERNAL_ERROR")
  Machine-readable error code.
- `messages` (string[])

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "string"
  ]
}
```