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

# Cancelling Orders

> Cancel one or more open orders via PerpsClient.cancelOrders

Cancel one or more open orders through `PerpsClient.cancelOrders`. The SDK-managed agent signs each cancellation; the user's wallet is not prompted.

<Info>
  The examples on this page use **Hyperliquid** (`provider: 'hyperliquid'`). Replace the `provider` value with any supported DEX from `getProviders()`.
</Info>

## cancelOrders

```typescript theme={null}
const result = await perps.cancelOrders({
  provider: 'hyperliquid',
  address: userAddress,
  ids: ['12345678'],
});
```

Pass multiple IDs to cancel several orders in a single call:

```typescript theme={null}
await perps.cancelOrders({
  provider: 'hyperliquid',
  address: userAddress,
  ids: ['12345678', '12345679'],
});
```

<Info>
  Use the `orderId` returned from the `placeOrder` response to cancel orders.
</Info>

**API Reference:** [POST /createAction · /executeAction](/api-reference/actions)
