-
Notifications
You must be signed in to change notification settings - Fork 12
/
cleanup.sh
executable file
·35 lines (27 loc) · 845 Bytes
/
cleanup.sh
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
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
. ./constants.sh install
cp dfx.json.orig dfx.json
cp initial_neurons.csv.orig initial_neurons.csv
rm -rf .dfx \
sns_init.yaml \
*.wasm *.wasm.gz \
nns-dapp/.dfx/* \
nns-dapp/canister_ids.json \
nns-dapp/*.wasm \
nns-dapp/*.wasm.gz \
internet-identity/.dfx \
internet-identity/internet_identity_dev.wasm \
msg.json \
sns_canister_ids.json \
upload_*.txt \
sns-wasm-list_deployed_snses-response.json \
nns-dapp/out
# Remove Wallets
rm -rf ~/.local/share/dfx/network/${NETWORK}/wallets.json
rm -rf ~/Library/Application\ Support/org.dfinity.dfx/network/${NETWORK}/wallets.json
# Remove any generated quill messages
rm -rf msg_*.json
# Remove Neurons' Fund neurons
./remove_nf_neurons.sh 2>/dev/null || true