← Back

Uninstall guide

Remove YES BABY CLAUDE CODE

Two steps. The hook and audio file are removed from your Claude Code config — nothing else on your system is touched.

What was installed

1. Check what is installed

Run this in Terminal to see your current Claude Code settings, including the hook entry:

Check settings
cat ~/.claude/settings.json

2. Remove hook + files

This command removes the hook entry from settings.json and deletes the two installed files. Paste it into Terminal and press Return:

One-command uninstall
python3 - <<'PY'
import json, pathlib, sys

settings_path = pathlib.Path.home() / ".claude" / "settings.json"
hook_path     = str(pathlib.Path.home() / ".claude" / "hooks" / "yes-baby.sh")

if not settings_path.exists():
    print("settings.json not found — nothing to do")
    sys.exit(0)

s = json.loads(settings_path.read_text())

usp = s.get("hooks", {}).get("UserPromptSubmit", [])
cleaned = [
    e for e in usp
    if not any(h.get("command") == hook_path for h in e.get("hooks", []))
]

if cleaned != usp:
    s.setdefault("hooks", {})["UserPromptSubmit"] = cleaned
    if not cleaned:
        del s["hooks"]["UserPromptSubmit"]
    if not s.get("hooks"):
        s.pop("hooks", None)
    settings_path.write_text(json.dumps(s, indent=2))
    print("Hook removed from settings.json")
else:
    print("Hook not found in settings.json — nothing to remove")
PY

rm -fv ~/.claude/hooks/yes-baby.sh ~/.claude/hooks/yes_baby.mp3
echo "Done. Restart Claude Code."

You may need to scroll the command box — it is a multi-line Python script.

3. Restart Claude Code

After running the command, fully quit and reopen Claude Code. The sound will no longer play.

Manual removal (alternative)
  1. Open settings

    nano ~/.claude/settings.json
  2. Remove the entry

    Delete the object containing "yes-baby.sh" from the UserPromptSubmit array
  3. Delete files

    rm -f ~/.claude/hooks/yes-baby.sh ~/.claude/hooks/yes_baby.mp3
  4. Restart

    Fully quit and reopen Claude Code

Having trouble? Open an issue in the source repository.