---
title: "Delete Gemini cached content"
method: DELETE
path: "/v1beta/cachedContents/{cacheId}"
tags: ["Gemini Resources"]
---

# Delete Gemini cached content

`DELETE /v1beta/cachedContents/{cacheId}`

## Request

- Base URL: `https://api.tokenlab.sh`
- URL: `https://api.tokenlab.sh/v1beta/cachedContents/{cacheId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-goog-api-key`

Deletes cached content. It cannot be used by subsequent generation after deletion. Resources can only be read, referenced, changed, or deleted in their owning Workspace. Missing, expired, or inaccessible resources return a Gemini-format error.

## Path parameters

- `cacheId` string, required

## Query parameters

- `key` string

## Response `200`

Success

- object

## Other responses

- `400`: Gemini-format resource error
- `401`: Gemini-format resource error
- `403`: Gemini-format resource error
- `404`: Gemini-format resource error
- `409`: Gemini-format resource error
- `429`: Gemini-format resource error
- `502`: Gemini-format resource error
- `503`: Gemini-format resource error

---

[API](https://skmtc.dev/tokenlab/apis/tokenlab-ai-gateway.md) · [All operations](https://skmtc.dev/tokenlab/apis/tokenlab-ai-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/tokenlab/apis/tokenlab-ai-gateway/revisions/3208bfbcda22?raw)
