Skip to content
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ $ curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
If you use nvm or fnm to manage Node.js, the installer may not update your current shell's PATH.
If `nemoclaw` is not found after install, run `source ~/.bashrc` (or `source ~/.zshrc` for zsh) or open a new terminal.

To uninstall NemoClaw and remove its local state, run:

```console
$ curl -fsSL https://raw.githubusercontent.com/NVIDIA/NemoClaw/refs/heads/main/uninstall.sh | bash
```

When the install completes, a summary confirms the running environment:

```
Expand Down
15 changes: 10 additions & 5 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ confirm() {
warn "Ollama models are preserved by default. Re-run with --delete-models to remove them."
fi
printf "Continue? [y/N] "
read -r reply
local reply=""
if [ -t 2 ] && read -r reply 0</dev/tty 2>/dev/null; then
:
else
read -r reply || true
fi
case "$reply" in
y|Y|yes|YES) ;;
*) info "Aborted."; exit 0 ;;
Expand Down Expand Up @@ -429,9 +434,6 @@ main() {
info "Removing global nemoclaw install..."
remove_nemoclaw_cli

info "Removing NemoClaw state..."
remove_nemoclaw_state

info "Removing related Docker containers..."
remove_related_docker_containers

Expand All @@ -450,10 +452,13 @@ main() {
info "Removing openshell binary..."
remove_openshell_binary

info "Removing NemoClaw state..."
remove_nemoclaw_state

echo ""
info "Uninstall complete."
}

if [ "${BASH_SOURCE[0]}" = "$0" ]; then
if [ "${BASH_SOURCE[0]-}" = "$0" ] || { [ -z "${BASH_SOURCE[0]-}" ] && { [ "$0" = "bash" ] || [ "$0" = "-bash" ]; }; }; then
main "$@"
fi
Loading