/channel-setup:reset — Reset Channel Configuration
Reset a channel's configuration. Automatically backs up before deleting.
Steps
1. List Available Channels
ls -d ~/.claude/channels/discord* ~/.claude/channels/telegram*
If nothing found: "No channels configured. Nothing to reset."
Show the list and ask which channel/profile to reset (e.g. "discord", "discord-frontend").
2. Show What Will Be Removed
Read and display the contents that will be deleted:
.env— bot tokenaccess.json— DM policy, groups, allowed users, pending pairsapproved/directory — pairing approval files
Show a summary:
Will reset: ~/.claude/channels/discord-frontend/
- .env (bot token)
- access.json (2 groups, 1 allowed user, pairing mode)
- approved/ (0 files)
3. Confirm
Ask the user to confirm: "Reset this channel? A backup will be created first."
If they decline: "Cancelled. No changes made."
4. Create Backup
mkdir -p ~/.claude/channels/<channel>/backup-$(date +%Y%m%d-%H%M%S)
cp ~/.claude/channels/<channel>/.env ~/.claude/channels/<channel>/backup-<timestamp>/
cp ~/.claude/channels/<channel>/access.json ~/.claude/channels/<channel>/backup-<timestamp>/
Tell the user: "Backup saved to ~/.claude/channels//backup-/"
5. Remove Config Files
rm -f ~/.claude/channels/<channel>/.env
rm -f ~/.claude/channels/<channel>/access.json
rm -rf ~/.claude/channels/<channel>/approved/
6. Confirm Reset
"✅ Channel reset complete." "Backup at: ~/.claude/channels//backup-/" "To reconfigure, run
/channel-setup:setup"