gcloud monitoring policies conditions delete

NAME
gcloud monitoring policies conditions delete - delete a condition in an alerting policy
SYNOPSIS
gcloud monitoring policies conditions delete(CONDITION :--policy=POLICY)[GCLOUD_WIDE_FLAG]
DESCRIPTION
Delete a condition in an alerting policy. If the specified condition does notexist, this command will fail with an error. This will not delete the policy ifno conditions exist.
POSITIONAL ARGUMENTS
Condition resource - The name of the Condition to delete. The arguments in thisgroup can be used to specify the attributes of this resource. (NOTE) Someattributes are not given arguments in this group but can be set in other ways.

To set theproject attribute:

  • provide the argumentcondition on the command line with a fullyspecified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

CONDITION
ID of the condition or fully qualified identifier for the condition.

To set thecondition attribute:

  • provide the argumentcondition on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--policy=POLICY
Name of the alerting policy.

To set thepolicy attribute:

  • provide the argumentcondition on the command line with a fullyspecified name;
  • provide the argument--policy on the command line.
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 help for details.

NOTES
These variants are also available:
gcloudalphamonitoringpoliciesconditionsdelete
gcloudbetamonitoringpoliciesconditionsdelete

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-09 UTC.