> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kraken.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unsubscribe

> Unsubscribe from one or more WebSocket channels

<div className="api-banner">
  <span className="api-protocol ws">WSS</span>
  <span className="api-detail">ws.kraken.com</span>
  <span className="api-tag">unsubscribe</span>
</div>

Unsubscribe from one or more channels. You can specify a channelID or multiple currency pairs. The response is returned via the [subscriptionStatus](/exchange/api-reference/spot-websocket-v1/subscriptionstatus) message.

## Request

<ResponseField name="event" type="string" required>
  Value: `unsubscribe`
</ResponseField>

<ResponseField name="pair" type="array of strings">
  <span className="field-attr">Condition:</span> All channels which support pair subscriptions<br />
  <span className="field-attr">Example:</span> `["BTC/USD", "MATIC/GBP"]`

  Unsubscribe to specific pairs.
</ResponseField>

<ResponseField name="reqid" type="string">
  Optional client originated request identifier sent as acknowledgment in the response.
</ResponseField>

<ResponseField name="subscription" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="name" type="string" required>
      <span className="field-attr">One of:</span> `book`, `ohlc`, `openOrders`, `ownTrades`, `spread`, `ticker`, `trade`, `*`

      The name of the channel to unsubscribe. Wildcard `*` is supported.
    </ResponseField>

    <ResponseField name="depth" type="integer">
      <span className="field-attr">Condition:</span> `book` channel only

      Unsubscribe to a specific depth.
    </ResponseField>

    <ResponseField name="interval" type="integer">
      <span className="field-attr">Condition:</span> `ohlc` channel only

      Unsubscribe to a specific interval.
    </ResponseField>
  </Expandable>
</ResponseField>

<Panel>
  <CodeGroup>
    ```json Unsubscribe theme={null}
    {
        "event": "unsubscribe",
        "pair": [
            "XBT/EUR",
            "XBT/USD"
        ],
        "subscription": {
            "name": "ticker"
        }
    }
    ```
  </CodeGroup>
</Panel>
