Google File Search icon

Google File Search

Interact with Google File Search API for RAG operations

Actions11

Document → Delete

AI-generated

Summary

Delete a specific document in a Google File Search store by providing its document resource name, with an option to force delete even if the document contains content.

Inputs

  • Document Name (required) — The full document resource name identifying which document to delete, e.g., 'fileSearchStores/store-ID/documents/doc-ID'.
  • Force Delete — Boolean flag to force deletion of the document even if it contains content; defaults to true.

Output shape

a single JSON object confirming the deletion with success status and the deleted document's resource name.

Throws an error if deletion fails. No pagination or multiple items are involved.

Examples

Example 1: Delete a document by its resource name forcing deletion regardless of content.

Set 'Document Name' to the resource name of the document to delete and 'Force Delete' to true.

Links

Discussion