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

# /cancel-all

<Tip>
  Although this documentation separates operations into different channels for clarity, all messages are sent over `wss://poly.drive.markets`.

  You must ensure the `path` property in your JSON payload matches the intended operation. [Using WebSockets](/using-websockets)
</Tip>


## AsyncAPI

````yaml api-reference/asyncapi.yaml cancel-all
id: cancel-all
title: Cancel-all
description: ''
servers:
  - id: production
    protocol: wss
    host: poly.drive.markets/ws
    bindings: []
    variables: []
address: cancel-all
parameters: []
bindings: []
operations:
  - &ref_1
    id: cancel-all.publish
    title: Cancel-all.publish
    type: receive
    messages:
      - &ref_3
        id: publish.message
        payload:
          - name: Cancel ALL Orders
            description: >
              Cancel all open orders posted by the user.


              [Polymarket
              Docs](https://docs.polymarket.com/developers/CLOB/orders/cancel-orders#cancel-all-orders)
            type: object
            properties:
              - name: id
                type: string
                description: Unique request ID.
                required: false
              - name: path
                type: string
                enumValues:
                  - /cancel-all
                required: true
              - name: method
                type: string
                enumValues:
                  - DELETE
                required: true
              - name: headers
                type: object
                description: Required L2 Headers for Polymarket CLOB API.
                required: true
                properties:
                  - name: POLY-API-KEY
                    type: string
                    required: false
                  - name: POLY-SIGNATURE
                    type: string
                    required: false
                  - name: POLY-TIMESTAMP
                    type: string
                    required: false
                  - name: POLY-NONCE
                    type: string
                    required: false
        headers: []
        jsonPayloadSchema:
          title: Cancel ALL Orders Payload
          type: object
          required:
            - path
            - method
            - headers
          properties:
            id:
              type: string
              description: Unique request ID.
              x-parser-schema-id: <anonymous-schema-38>
            path:
              type: string
              enum:
                - /cancel-all
              default: /cancel-all
              x-parser-schema-id: <anonymous-schema-39>
            method:
              type: string
              enum:
                - DELETE
              default: DELETE
              x-parser-schema-id: <anonymous-schema-40>
            headers:
              type: object
              description: Required L2 Headers for Polymarket CLOB API.
              properties:
                POLY-API-KEY:
                  type: string
                  x-parser-schema-id: <anonymous-schema-42>
                POLY-SIGNATURE:
                  type: string
                  x-parser-schema-id: <anonymous-schema-43>
                POLY-TIMESTAMP:
                  type: string
                  x-parser-schema-id: <anonymous-schema-44>
                POLY-NONCE:
                  type: string
                  x-parser-schema-id: <anonymous-schema-45>
              x-parser-schema-id: <anonymous-schema-41>
          x-parser-schema-id: CancelAllOrdersRequest
        title: Cancel ALL Orders
        description: >
          Cancel all open orders posted by the user.


          [Polymarket
          Docs](https://docs.polymarket.com/developers/CLOB/orders/cancel-orders#cancel-all-orders)
        example: |-
          {
            "id": "<string>",
            "path": "<string>",
            "method": "<string>",
            "headers": {
              "POLY-API-KEY": "<string>",
              "POLY-SIGNATURE": "<string>",
              "POLY-TIMESTAMP": "<string>",
              "POLY-NONCE": "<string>"
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: publish.message
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: cancel-all
  - &ref_2
    id: cancel-all.subscribe
    title: Cancel-all.subscribe
    type: send
    messages:
      - &ref_4
        id: subscribe.message
        payload:
          - type: string
            x-parser-schema-id: ResponsePayload
            name: Response
            description: >
              Responses are structured to match Polymarket's CLOB API response
              format.


              Refer to Polymarket's [Order
              API](https://docs.polymarket.com/developers/CLOB/orders/orders)
              for more information on the response format.
        headers: []
        jsonPayloadSchema:
          type: string
          x-parser-schema-id: ResponsePayload
        title: Response
        description: >
          Responses are structured to match Polymarket's CLOB API response
          format.


          Refer to Polymarket's [Order
          API](https://docs.polymarket.com/developers/CLOB/orders/orders) for
          more information on the response format.
        example: '{}'
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message
    bindings: []
    extensions: *ref_0
sendOperations:
  - *ref_1
receiveOperations:
  - *ref_2
sendMessages:
  - *ref_3
receiveMessages:
  - *ref_4
extensions:
  - id: x-parser-unique-object-id
    value: cancel-all
securitySchemes: []

````