---
title: "Deletes all entries from a Build Cache Node."
method: POST
path: "/api/build-cache/nodes/{name}/purge"
tags: ["BuildCache", "GradleEnterprise", "Develocity"]
---

# Deletes all entries from a Build Cache Node.

`POST /api/build-cache/nodes/{name}/purge`

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/build-cache/nodes/{name}/purge`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/build-cache/nodes/:name/purge/post.ts> (a function with typed inputs; its response is checked against the schema)

Triggers the deletion of all entries stored at the named Build Cache Node.

## Response `202`

Purging the Build Cache Node was successfully initiated.

## Other responses

- `404`: The referenced resource either does not exist or the permissions to know about it are missing.
- `500`: The server encountered an unexpected error.
- `503`: The node was not signed in with Develocity.

---

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