---
title: "Cancel all queued commands for an organization by workflow instance Id"
method: DELETE
path: "/api/v2/commandqueue/{workflow_instance_id}"
tags: ["Commands"]
---

# Cancel all queued commands for an organization by workflow instance Id

`DELETE /api/v2/commandqueue/{workflow_instance_id}`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/commandqueue/{workflow_instance_id}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/commandqueue/:workflow_instance_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows all queued commands for one workflow instance to be canceled.

#### Sample Request
```
 curl -X DELETE https://console.jumpcloud.com/api/v2/commandqueue/{workflow_instance_id} \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -H 'x-api-key: {API_KEY}'
```

## Headers

- `x-org-id` string

## Response `204`

OK

## Other responses

- `400`: Bad Request
- `401`: Unauthenticated
- `403`: Unauthorized
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
