Remove documents from the index
remove_documentRemoves a document or every indexed document under a folder from the search index, leaving files on disk untouched.
Instructions
Remove a document, or every document under a folder, from the search index.
Use this when a document should no longer appear in search results, for example a file that was moved out of an indexed folder or a folder that should not be searched any more. It deletes index entries only: the files on disk are never touched, and running index_documents on the folder again adds them back. Returns the paths that were removed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "remove_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of an indexed document, or of a folder to remove every indexed document under it. |