csb rm
Remove one or more brains.
Usage
csb rm [<name>…] [-y] [--delete-remote | --keep-remote]Alias: csb remove.
Deletes each brain's directory under ~/.claude-second-brain/ and removes its entry from config.toml. If you remove the default brain and others remain, the first remaining brain becomes the new default.
Arguments
name
string[]
One or more brains to remove. Without a name, the CLI shows a multi-select picker: press space to toggle a brain, a to toggle all, enter to confirm.
csb rm a b cOptions
-y, --yes
boolean
Skip the confirmation prompt. On its own it keeps remotes (safe default).
csb rm my-brain --yes--delete-remote
boolean
Also delete each brain's remote, without prompting. Can't be combined with --keep-remote.
csb rm a b --yes --delete-remote--keep-remote
boolean
Keep each brain's remote, without prompting.
csb rm a b --yes --keep-remote-h, --help
Displays help message.
csb rm --helpRemote deletion
For each brain with a registered git_remote, the CLI can also delete the remote repo:
- GitHub: runs
gh repo delete <owner>/<repo> --yes(needs theghCLI with thedelete_reposcope). - Cloudflare Artifacts: calls
DELETE https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/artifacts/namespaces/<ns>/repos/<repo>withCLOUDFLARE_API_TOKENor a token fromwrangler auth token.
| Flags | Remotes |
|---|---|
| none (interactive) | Prompts per brain |
--keep-remote | Kept, no prompt |
--delete-remote | Deleted, no prompt |
-y without a remote flag | Kept |
If a remote deletion fails (missing CLI, revoked token, …), the CLI prints the exact manual command and continues. The local directory and config entry are still removed.