gcloud services disable
Stay organized with collections
Save and categorize content based on your preferences.
- NAME
-
- gcloud services disable - disable a service for consumption for a project
- SYNOPSIS
-
-
gcloud services disableSERVICE[SERVICE…] [--async] [--force] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
This command disables one or more previously-enabled services for consumption.
To see a list of the enabled services for a project, run:
gcloudserviceslistMore information on listing services can be found at: https://cloud.google.com/service-usage/docs/list-services and on disabling a service at: https://cloud.google.com/service-usage/docs/enable-disable
- EXAMPLES
-
To disable a service called
my-consumed-servicefor the active project, run:gcloudservicesdisablemy-consumed-serviceTo run the same command asynchronously (non-blocking), run:
gcloudservicesdisablemy-consumed-service--async - POSITIONAL ARGUMENTS
-
SERVICE[SERVICE…]- The name of the service(s) to disable.
- FLAGS
-
--async- Return immediately, without waiting for the operation in progress to complete.
--force- If specified, the disable call will proceed even if there are enabled services which depend on the service to be disabled or disable the service used in last 30 days or was enabled in recent 3 days. Forcing the call means that the services which depend on the service to be disabled will also be disabled.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - NOTES
-
These variants are also available:
gcloudalphaservicesdisablegcloudbetaservicesdisable