TokenLab

Gemini Files & Cache

Delete Gemini cached content

Deletes cached content.

DELETE
/v1beta/cachedContents/{cacheId}
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.
curl -X DELETE "https://example.com/v1beta/cachedContents/string"
{}

Authorization

AuthorizationBearer <token>

API Key authentication. Create or manage API keys in Dashboard > API > API Keys.

In: header

Path Parameters

cacheId*string

Query Parameters

key?string

API key alternative to Bearer or x-goog-api-key.

Response

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json