deregister_directory
Stop tracking a directory and optionally retain its indexed data or purge it from the vector store.
Instructions
Use to stop tracking a directory and optionally retain indexed data.
Use to stop tracking a directory — keep its indexed data with
keep_data=True, or purge it.
Returns the removed-file count synchronously; the chunk purge runs as a background task. An unknown collection surfaces as an error, not a removal confirmation.
Args: collection: Collection name to deregister. keep_data: If true, keep indexed data in LanceDB.
Returns: The removed registry-file count and the accepted chunk-purge task ID; the purge may still be running. Input refusals, daemon errors, and unexpected failures return Error: ... text. Connection failures include recovery guidance.
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": {
"collection": "<collection>"
},
"name": "deregister_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_data | No | ||
| collection | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |