Document → Delete
AI-generatedSummary
Delete a document from a Gemini File Search store by its full resource name.
Inputs
- documentName (required) — The full resource name of the document to delete, e.g., fileSearchStores/my-store-123/documents/doc-abc
- force — If true, delete the document even if it contains chunks; otherwise deletion fails when chunks exist.
Output shape
a single record indicating deletion result
The operation returns a JSON object with a success flag and optionally the deleted document identifier; no pagination is involved.
Examples
Example 1: Delete a specific document using its stored path
documentName = fileSearchStores/my-store-123/documents/doc-abc, force = false
Example 2: Bulk delete multiple documents with force enabled
documentName = fileSearchStores/my-store-123/documents/doc-1, force = true