---
title: "Delete the cache entries of some capsules (or all); only the stale ones with stale_only"
method: POST
path: "/v3/admin/compute-cache/purge"
tags: ["Admin"]
---

# Delete the cache entries of some capsules (or all); only the stale ones with stale_only

`POST /v3/admin/compute-cache/purge`

## Request

- Base URL: `https://api.rhinoartisan.com`
- URL: `https://api.rhinoartisan.com/v3/admin/compute-cache/purge`
- Auth: API key in header `apikey`
- TypeScript: <https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api/docs/v3/admin/compute-cache/purge/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `capsule_ids` integer[], nullable: null = every capsule; 0 = entries without capsule
  - `stale_only` boolean: Only entries of an older .gh or another engine version
  - `dry_run` boolean

## Response `200`

{entries, bytes}

## Changes

- **2026-10-15** `0b478336a831`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api/changes/v3/admin/compute-cache/purge/post.md)

---

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