---
title: "Cancel all builds for a team"
method: POST
path: "/admin/teams/{teamID}/builds/cancel"
tags: ["admin"]
---

# Cancel all builds for a team

`POST /admin/teams/{teamID}/builds/cancel`

Cancels all in-progress and pending builds for the specified team

## Path parameters

- `teamID` string, uuid, required

## Response `200`

Successfully cancelled builds

- AdminBuildCancelResult
  - `cancelledCount` integer, required — Number of builds successfully cancelled
  - `failedCount` integer, required — Number of builds that failed to cancel

## Other responses

- `401` — Authentication error
- `404` — Not found
- `500` — Server error

---

[API](https://skmtc.net/e2b-dev/apis/e2b-api.md) · [All operations](https://skmtc.net/e2b-dev/apis/e2b-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/e2b-dev/e2b-api/versions/11a0e23ec7ab/schema)
