# Remove a link to another booking platform.

`DELETE /listings/{listing_id}/ota_links/{link_id}`

> Wheelhouse Revenue Management API. Web version: https://docs.usewheelhouse.com/rm/reference/rm-delete-ota-link · OpenAPI spec: https://docs.usewheelhouse.com/rm/openapi.yaml · Operation ID: `rmDeleteOtaLink` · Tag: Listing OTA Links

Removes one source's link, named by the `link_id` in the link's `sources`. Only links with `removable: true` can be removed: links from the PMS change only in the PMS, so the page stays listed for as long as the PMS sends it. Only the named source's link ends: the page stays listed for as long as another source still links it, e.g. a `direct` website that was also added by a bulk upload.

Requires owner, manager or editor access to the listing (restricted editors included); viewers get `403`.

## Request

`DELETE https://api.usewheelhouse.com/ss_api/v1/listings/{listing_id}/ota_links/{link_id}`

Authentication: send your RM API key in the `X-Integration-Api-Key` header (see https://docs.usewheelhouse.com/rm/authentication.md). Modifies data; read-only keys get `403 Forbidden`.

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `listing_id` | string | yes | The channel's unique listing identifier, or the Wheelhouse listing ID when `channel` is `wheelhouse`. |
| `link_id` | integer | yes | The `link_id` of one of the link's `sources`, from `GET /listings/{listing_id}/ota_links`. |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name the listing is on (the `channel` field of the [/listings](https://docs.usewheelhouse.com/rm/reference/rm-get-listings.md) response), or the literal `wheelhouse` to read `listing_id` as a Wheelhouse listing ID instead. See [Identifying Listings](https://docs.usewheelhouse.com/rm/concepts/listings.md). |

### Example request

```bash
curl -X DELETE 'https://api.usewheelhouse.com/ss_api/v1/listings/{listing_id}/ota_links/{link_id}?channel=<channel>' \
  -H 'X-Integration-Api-Key: <your RM API key>'
```

Only required parameters and body fields are filled in, with placeholder values. Add the optional ones you need from the lists above; some are required in combination, as their descriptions say.

## Responses

### 204

The link was removed.

### 401

API key authorization failed.

### 403

Listing authorization failed (including a viewer on a shared listing), or the API key is read-only and may not be used with DELETE.

### 404

Listing not found, or the listing has no current link with that `link_id`, e.g. because it was already removed.

### 406

The listing is inactive. See the **Inactive Listings** section in the overview.

Body (`application/json`): object

- `error` (string, example: `Listing '12345' is inactive`)

Example shape (generated from the schema; placeholder values, not a real response):

```json
{
  "error": "Listing '12345' is inactive"
}
```

### 422

The link comes from the listing's PMS and cannot be removed.

### 429

Rate limit exceeded — the API key has sent too many requests. Wait before retrying. See the **Rate Limits** section in the overview for the recommended exponential backoff strategy.

Body (`application/json`): object

- `error` (string, example: `API token is at rate limit`)

Example shape (generated from the schema; placeholder values, not a real response):

```json
{
  "error": "API token is at rate limit"
}
```
