delete_collection
Remove a codebase index by root path or delete an orphaned collection by ID. Use path to delete indexed code; use collection_id to clean up unknown collections.
Instructions
Delete index for a codebase.
Args: path: Root path of codebase to remove from index collection_id: Direct collection ID (e.g., "codesearch_abc123") for orphan cleanup
Returns: Confirmation message
Note: Use collection_id to delete orphaned collections that show as "unknown" in list_collections. Either path or collection_id must be provided, but not both.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| collection_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |