---
title: slotsUpdatesUnsubscribe
description: Cancel a slotsUpdatesSubscribe websocket subscription.
url: /docs/rpc/websocket/slotsupdatesunsubscribe
type: reference
hideTableOfContents: true
---

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

<Callout type="info" title="Source">
  [`slots_updates_unsubscribe`](https://github.com/anza-xyz/agave/blob/v3.1.8/rpc/src/rpc_pubsub.rs#L541)
</Callout>

<APIMethod>

```jsonc !!request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "slotsUpdatesUnsubscribe",
  "params": [0]
}
```

### !params

#### !! subscription id

!type integer  
!required

Subscription id returned by `slotsUpdatesSubscribe`.

### !!result

```jsonc !response
{
  "jsonrpc": "2.0",
  "result": true,
  "id": 1
}
```

!type boolean

Returns `true` if the subscription was removed. Returns an error if the
subscription id is unknown.

</APIMethod>
