forked from NVIDIA/NemoClaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·26 lines (22 loc) · 817 Bytes
/
Copy pathuninstall.sh
File metadata and controls
executable file
·26 lines (22 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Compatibility wrapper for the TypeScript NemoClaw uninstaller.
#
# Usage: ./uninstall.sh [--yes] [--keep-openshell] [--delete-models] [--destroy-user-data]
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
CLI_JS="${NEMOCLAW_CLI_JS:-$SCRIPT_DIR/dist/nemoclaw.js}"
if [ -f "$CLI_JS" ]; then
NODE_BIN="${NEMOCLAW_NODE:-${NODE:-}}"
if [ -z "$NODE_BIN" ]; then
NODE_BIN="$(command -v node || true)"
fi
if [ -z "$NODE_BIN" ]; then
echo "ERROR: node is required to run the NemoClaw uninstaller." >&2
exit 127
fi
exec "$NODE_BIN" "$CLI_JS" internal uninstall run-plan "$@"
fi
exec nemoclaw internal uninstall run-plan "$@"