---
title: "Delete a pool"
method: DELETE
path: "/api/pools/{poolId}"
tags: ["Pool"]
---

# Delete a pool

`DELETE /api/pools/{poolId}`

Delete a pool. You cannot delete a pool if there are any attempts running or queued in the pool, if a pool rule references it, or if it is the default pool. The deleted pool’s concurrency limit is added to the default pool’s concurrency limit.

## Path parameters

- `poolId` integer, required — ID of the pool.

## Response `200`

Pool deleted

- RestPool
  - `concurrencyLimit` integer, required — Maximum number of concurrent attempts that can run in this pool. Total concurrency limit of all pools cannot exceed the account's concurrency limit.
  - `default` boolean, required — Whether the pool is the default pool.
  - `id` string, required — ID of the pool.
  - `name` string, required — Name of the pool. This name must be unique within the account.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Pool not found

---

[API](https://skmtc.net/treasure/apis/treasure-workflow.md) · [All operations](https://skmtc.net/treasure/apis/treasure-workflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/treasure-workflow/revisions/4eedf1838ef4/schema)
