---
title: "POST /build/prune"
method: POST
path: "/build/prune"
---

# POST /build/prune

`POST /build/prune`

Delete builder cache

## Query parameters

- `reserved-space` integer
- `max-used-space` integer
- `min-free-space` integer
- `all` boolean
- `filters` string

## Response `200`

The request has succeeded.

- object
  - `CachesDeleted` string[]
  - `SpaceReclaimed` integer

## Changes

- **2026-02-14** `31f80d10d31a` — 2 info
  - api tag `Image` removed
  - removed the non-success response with the status `500`

[Change history](https://skmtc.dev/hexlet/apis/docker-engine-api/changes/build/prune/post.md)

---

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