gemini_delete_file
Delete uploaded images or photos from Gemini Files API using a file_uri. Removes files before their 48-hour expiry to avoid broken references.
Instructions
Delete an uploaded file, image or photo (by file_uri) from the Gemini Files API before its ~48h expiry. Any tool call still referencing it will then fail with a generic 404, so delete only references you are finished with.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to proceed. Without this, the tool returns a preview. | |
| file_uri | Yes | The `files/<id>` reference (or full uri) to delete |