Last active
July 17, 2024 23:13
-
-
Save richardevcom/8aef3539314e8f6afe39cd538f5e2d32 to your computer and use it in GitHub Desktop.
Google Cloud CLI command to disable all enabled services.
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
# Use --force to skip "usage" errors | |
gcloud services disable --project <project_id> $(gcloud services list --enabled --project <project_id> --format="value(NAME)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're getting this error:
then use
--force
argument aftergcloud services disable
to skip this error.