Created
November 18, 2019 22:54
-
-
Save twfahey1/06c7ce75612b4614153975c79cdd63a5 to your computer and use it in GitHub Desktop.
Terminus multidev delete all
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script removes all multidevs for a given environment. | |
# Pass the site as the first argument. | |
# E.g. ./terminus-multidev-delete-all.sh my-pantheon-site | |
SITE=$1 | |
MULTIDEVS=$(terminus multidev:list $SITE --field=Name) | |
for ENV in $MULTIDEVS | |
do | |
echo "Deleting $ENV" | |
terminus multidev:delete $SITE.$ENV -y | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment