---
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

## Changes

> 53 revisions in range; 4 could not be searched.

- **2026-07-24** `93ed246a4c10` — 2 info
  - the endpoint scheme security `AdminApiKeyAuth` was added to the API
  - the endpoint scheme security `AdminTokenAuth` was removed from the API
- **2026-03-26** `324629e18dc8` — 1 info
  - endpoint added
- **2023-11-15** `897ba2f1c7b6` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/e2b-dev/apis/e2b-api/changes/admin/teams/:teamID/builds/cancel/post.md)

---

[API](https://skmtc.dev/e2b-dev/apis/e2b-api.md) · [All operations](https://skmtc.dev/e2b-dev/apis/e2b-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/e2b-dev/e2b-api/revisions/e01b3f5506fe/schema)
