github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/deploy/dev/local/clean.sh (about) 1 #!/bin/bash 2 3 ############################################ 4 # 5 # Usage: clean.sh 6 # 7 ############################################ 8 9 source "$(dirname "$0")/../utils.sh" 10 11 # Unmount and clears all virtual block disks. 12 NEXT_TIER= 13 rm_loopbacks 14 NEXT_TIER="_next" 15 rm_loopbacks 16 17 build_dest="${GOPATH}/bin" 18 if [[ -n ${GOBIN} ]]; then 19 build_dest="${GOBIN}" 20 fi 21 22 rm -rf ~/.ais* # cluster config and metadata 23 rm -rf ~/.config/ais # CLI, AuthN (config and DB), AuthN tokens produced via CLI 24 rm -rf /tmp/ais* # user data and cluster metadata 25 rm -f ${build_dest}/ais* # in particular, 'ais' (CLI), 'aisnode', and 'aisloader' binaries 26 rm -f ${build_dest}/authn # AuthN executable