github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/charts/geth-prysm/uninstall.sh (about) 1 #!/bin/bash 2 3 # Ask for release name to uninstall 4 read -p "Enter the Helm release name to uninstall (press Enter to uninstall the first one found, if none is given): " release_name 5 6 if [ -z "$release_name" ]; then 7 read -p "No release name provided. Are you sure you want to uninstall the first Helm deployment? (y/n): " confirm_uninstall 8 if [ "$confirm_uninstall" != "y" ]; then 9 echo "Aborted uninstallation." 10 exit 0 11 fi 12 # Run helm list and grab the name of the first deployment 13 release_name=$(helm list -o json | jq -r '.[0].name') 14 fi 15 16 # Uninstall the specified release 17 helm uninstall "$release_name"