Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ValeriiVasyliev/321dc2ca1f666833a1720a3537e98381 to your computer and use it in GitHub Desktop.
Save ValeriiVasyliev/321dc2ca1f666833a1720a3537e98381 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