Forked from twfahey1/terminus-multidev-delete-all.sh
Created
February 3, 2022 06:33
-
-
Save ValeriiVasyliev/321dc2ca1f666833a1720a3537e98381 to your computer and use it in GitHub Desktop.
Terminus multidev delete all
This file contains hidden or 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