Metis · Librarian — Delete Knowledge Database
delete_knowledge_databaseDelete a knowledge layer and all its indexed passages and vectors while leaving your source PDFs on disk untouched, so the layer can be rebuilt by re-indexing the same folders.
Instructions
Remove a knowledge background layer and everything indexed under it.
Deletes the layer's registry row, its indexed passages and its vectors. Your
PDFs on disk are NOT touched — only the search index built from them, so the
layer can always be rebuilt by pointing at the same folders again.
Args:
database: The layer's slug (e.g. 'my-custom-layer').
confirm: Must be True to proceed. Without it, this reports what WOULD be
deleted and changes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| database | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |