remove_file_from_index
Remove a file's indexed chunks from a project's RAG index. Use to delete outdated or large files without clearing the entire project.
Instructions
Remove all indexed chunks for a specific file from a project's index. Useful for removing large log files or outdated files without clearing the entire project.
Args: file_path: Relative file path within the project (e.g., "device-26-04-28.log") project: Project name (e.g., "my_device_logs")
Returns: Confirmation with number of chunks 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": {
"file_path": "<file_path>",
"project": "<project>"
},
"name": "remove_file_from_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |