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

# Cancel all trigger orders for a subaccount

> Cancels every pending trigger order on the given subaccount. Requires any trade scope; returns "ok" on success.



## OpenAPI

````yaml /openapi.json post /private/cancel_all_trigger_orders
openapi: 3.1.0
info:
  title: Derive v3 API
  version: 0.2.0
  description: JSON-RPC 2.0 methods, served over WebSocket and HTTP POST.
servers:
  - url: https://api.derive.xyz/v3
    description: Production (HTTP POST base)
  - url: https://testnet.api.derive.xyz/v3
    description: Testnet (HTTP POST base)
security: []
tags:
  - name: Subaccounts
    description: >-
      List, inspect, and label subaccounts, portfolios, positions, and
      collateral.
  - name: Session Keys
    description: Register, edit, and list delegated signing keys.
  - name: Account
    description: Wallet-level account information and settings.
  - name: Orderbook
    description: Place, replace, cancel, and query orders, trigger orders, and algos.
  - name: RFQ
    description: 'Request-for-quote: send RFQs, quote, and execute block trades.'
  - name: Vault Shareholders
    description: >-
      Deposit into and withdraw from vaults, and track shares, requests, and
      performance.
  - name: Vault Curators
    description: >-
      Create and operate curated vaults: settle deposit and withdrawal requests,
      and manage vault metadata.
  - name: History
    description: >-
      Per-account historical records: orders, trades, transfers, and
      settlements.
  - name: Market Maker Protection
    description: Configure, read, and reset market-maker protection.
  - name: Transfers & Withdrawals
    description: Move collateral between subaccounts, to other wallets, and on-chain.
  - name: System
    description: Rate limits and transaction lookups.
  - name: Market Data
    description: Instruments, currencies, tickers, and market-wide feeds.
  - name: Referrals
    description: Referral codes and program performance.
  - name: Other
    description: Uncategorized.
paths:
  /private/cancel_all_trigger_orders:
    post:
      tags:
        - Orderbook
      summary: Cancel all trigger orders for a subaccount
      description: >-
        Cancels every pending trigger order on the given subaccount. Requires
        any trade scope; returns "ok" on success.
      operationId: private_cancel_all_trigger_orders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancelAllTriggerOrdersRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelAllTriggerOrdersResponse'
        default:
          description: JSON-RPC error (see Error Codes)
components:
  schemas:
    CancelAllTriggerOrdersRequest:
      type: object
      required:
        - subaccount_id
      properties:
        subaccount_id:
          type: integer
          format: int64
    CancelAllTriggerOrdersResponse:
      description: The literal string `"ok"` returned on success.
      type: string
      enum:
        - ok

````

## Related topics

- [Cancel all open orders for a subaccount](/api-reference/orderbook/cancel-all-open-orders-for-a-subaccount.md)
- [Cancel a trigger order by id](/api-reference/orderbook/cancel-a-trigger-order-by-id.md)
- [List trigger orders for a subaccount](/api-reference/orderbook/list-trigger-orders-for-a-subaccount.md)
