Skip to content

Instantly share code, notes, and snippets.

@twfahey1
Created November 18, 2019 22:54
Show Gist options
  • Save twfahey1/06c7ce75612b4614153975c79cdd63a5 to your computer and use it in GitHub Desktop.
Save twfahey1/06c7ce75612b4614153975c79cdd63a5 to your computer and use it in GitHub Desktop.
Terminus multidev delete all
# 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