---
title: "Delete caches"
method: DELETE
path: "/repositories/{workspace}/{repo_slug}/pipelines-config/caches"
tags: ["Pipelines"]
---

# Delete caches

`DELETE /repositories/{workspace}/{repo_slug}/pipelines-config/caches`

## Request

- Base URL: `https://api.bitbucket.org/2.0`
- URL: `https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines-config/caches`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://bitbucket.org/site/oauth2/authorize`
    - Token URL: `https://bitbucket.org/site/oauth2/access_token` scopes: `pipeline:write`
  - HTTP basic
  - API key in header `Authorization`

Delete repository cache versions by name.

## Path parameters

- `workspace` string, required
- `repo_slug` string, required

## Query parameters

- `name` string, required

## Response `204`

The caches were deleted.

## Other responses

- `404`: The workspace, repository or cache name was not found.

---

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