fabric-samples/commercial-paper/network-clean.sh
NIKHIL E GUPTA e1d1951c5b Remove file transfer files from commercial paper
Signed-off-by: NIKHIL E GUPTA <negupta@us.ibm.com>
2020-06-01 12:11:10 -04:00

29 lines
553 B
Bash
Executable file

#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
function _exit(){
printf "Exiting:%s\n" "$1"
exit -1
}
# Exit on first error, print all commands.
set -ev
set -o pipefail
# Where am I?
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export FABRIC_CFG_PATH="${DIR}/../config"
pushd "${DIR}/../test-network/"
docker kill cliDigiBank cliMagnetoCorp logspout || true
./network.sh down
popd
rm -rf organization/magnetocorp/identity/
rm -rf organization/digibank/identity/
# remove any stopped containers
docker rm $(docker ps -aq)