TokenLab

Gemini Files & Cache

Delete Gemini file

Deletes a Gemini file.

DELETE
/v1beta/files/{fileId}
Deletes a Gemini file. Save anything needed before deletion. Resources can only be read, referenced, changed, or deleted in their owning Workspace.
curl -X DELETE "https://example.com/v1beta/files/string"
{}

Authorization

AuthorizationBearer <token>

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

In: header

Path Parameters

fileId*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