> ## 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.

# Cancel All

> Cancel all open orders including partially-filled orders

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

Cancel all open orders. Includes partially-filled orders.

<Tabs>
  <Tab title="Request">
    <ResponseField name="event" type="string" required>
      Value: `cancelAll`
    </ResponseField>

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

    <ResponseField name="token" type="string" required>
      Session token from the [GetWebSocketsToken](/api-reference/trading/get-websockets-token) REST endpoint.
    </ResponseField>
  </Tab>

  <Tab title="Response">
    <ResponseField name="event" type="string">
      Value: `cancelAllStatus`
    </ResponseField>

    <ResponseField name="count" type="string">
      Number of orders cancelled.
    </ResponseField>

    <ResponseField name="status" type="string">
      <span className="field-attr">One of:</span> `ok`, `error`
    </ResponseField>

    <ResponseField name="reqid" type="integer">
      Client originated identifier for the request that initiated this response.
    </ResponseField>

    <ResponseField name="errorMessage" type="string">
      Error message for unsuccessful requests.
    </ResponseField>
  </Tab>
</Tabs>

<Panel>
  <CodeGroup>
    ```json Request theme={null}
    {
        "event": "cancelAll",
        "token": "0000000000000000000000000000000000000000"
    }
    ```

    ```json Response theme={null}
    {
        "count": 2,
        "event": "cancelAllStatus",
        "status": "ok"
    }
    ```
  </CodeGroup>
</Panel>
