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

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# slotsUpdatesUnsubscribe

> Cancel a slotsUpdatesSubscribe websocket subscription.

Cancel an existing
[slotsUpdatesSubscribe](/developers/docs/rpc/websocket/slotsupdatessubscribe) subscription.

<Info>
  **Source**

  [`slots_updates_unsubscribe`](https://github.com/anza-xyz/agave/blob/v4.3.2/rpc/src/rpc_pubsub.rs#L544)
</Info>

<RequestExample>
  ```json WebSocket
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "slotsUpdatesUnsubscribe",
    "params": [0]
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Response
  {
    "jsonrpc": "2.0",
    "result": true,
    "id": 1
  }
  ```
</ResponseExample>

## Parameters

<ParamField body="subscription id" type="integer" required>
  Subscription id returned by `slotsUpdatesSubscribe`.
</ParamField>

## Result

<ResponseField name="result" type="boolean">
  Returns `true` if the subscription was removed. Returns an error if the
  subscription id is unknown.
</ResponseField>
