Skip to content

Add labagent rag destroy - #27

Merged
kchandan merged 1 commit into
mainfrom
rag-destroy
Oct 30, 2026
Merged

kchandan merged 1 commit into
mainfrom
rag-destroy

Conversation

@kchandan

Copy link
Copy Markdown
Member

Fixes #26.

labagent rag destroy --dir <lab> deletes a folder created by rag init. It asks the user to type yes (--yes skips). It refuses, deleting nothing, when the folder is missing, does not contain .env, README.md and notebooks/01_chunking.ipynb, is the home folder or a drive root, or is or contains the current folder. Read-only files (.env is mode 600) are cleared before delete so Windows does not fail. README and docs/rag-local.md document it.

Tests: 492 passed, 3 skipped on macOS, Python 3.9. Not run on Windows.

🤖 Generated with Claude Code

Fixes #26.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kchandan
kchandan merged commit 44035a6 into main Oct 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gap Analysis: No labagent command to delete a Part 1 (rag) lab

1 participant