deregister_directory
Stop tracking a directory and remove it from the search index. Keep indexed data or purge it entirely; returns removed-file count while background cleanup runs.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_data | No | ||
| collection | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |