Skip to main content
Glama

gemini_deleteFile

Delete a specific file uploaded to the Gemini API by providing its unique file name (e.g., 'files/abc123xyz'). Returns a success confirmation upon deletion. Works exclusively with Google AI Studio API keys.

Instructions

Deletes a specific file previously uploaded to the Gemini API. NOTE: This API is not supported on Vertex AI clients. It only works with Google AI Studio API keys. Requires the unique file name (e.g., 'files/abc123xyz'). Returns a success confirmation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNameYesRequired. The unique name/ID of the file to delete (e.g., 'files/abc123xyz').

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bsmi021/mcp-gemini-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server