Usage
What Gets Cleaned
Remove inactive documents
Removes document records marked as inactive (deleted from filesystem but still in index).
When to Use
Runqmd cleanup when:
- You’ve removed files from collections and want to reclaim space
- The cache has grown large and you want to clear it
- The database file size seems larger than expected
- After bulk deletions or collection removals
Cleanup is safe to run at any time. It only removes data that is no longer needed.
Example Output
Performance Impact
- Clearing cache means next searches will be slower (query expansion/reranking not cached)
- Embeddings will need to be regenerated if documents change
- Vacuum can take a few seconds for large databases
Related
- qmd update - Re-index all collections
- qmd status - Check index health before cleanup