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

# preconfUnsubscribe

> Stop a Preconfirmations subscription by its id and stop receiving scheduled-transaction notifications.

Stop a subscription started with [preconfSubscribe](/docs/api-reference/pre-confirmations/preconfsubscribe). Notifications stop immediately.

Closing the connection removes all of its subscriptions, so you only need this method to stop one subscription while keeping others on the same connection alive.

## Body

<ParamField body="params" type="array" required>
  A single-element array containing the integer subscription id returned by `preconfSubscribe`.
</ParamField>

## Response

<ResponseField name="result" type="boolean">
  `true` if the subscription existed and was yours.
</ResponseField>

<RequestExample>
  ```json Request theme={"system"}
  { "jsonrpc": "2.0", "id": 2, "method": "preconfUnsubscribe", "params": [24040] }
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={"system"}
  { "jsonrpc": "2.0", "id": 2, "result": true }
  ```
</ResponseExample>
