deregister_directory
Stop tracking a directory by deregistering its collection. Choose to keep indexed data for later use or purge it entirely, with removal counts returned synchronously.
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 |