gcloud alpha compute instances ops-agents policies delete Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha compute instances ops-agents policies delete - delete a Google Cloud's operations suite agents(Ops Agents) policy
- SYNOPSIS
gcloud alpha compute instances ops-agents policies deletePOLICY_ID[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)gcloud alpha compute instances ops-agents policiesdeletedeletes a policy that facilitates agent management across ComputeEngine instances based on user specified instance filters. This policy installs,specifies versioning, enables autoupgrade, and removes Ops Agents.The command returns a response indicating whether the deletion succeeded. Aftera policy is deleted, it takes 10-15 minutes to be wiped from the applicableinstances. Deleting a policy does not delete any existing agents managed by thatpolicy, but the agents become unmanaged by any policies. To remove the agentsfrom the instances, first update the policy to set the agent
topackage-state, wait for the policy to takeeffect, then delete the policy.removed- EXAMPLES
- To delete an Ops agents policy named
in the currentproject, run:ops-agents-test-policygcloudalphacomputeinstancesops-agentspoliciesdeleteops-agents-test-policy - POSITIONAL ARGUMENTS
POLICY_ID- ID of the policy.
This ID must start with
,contain only lowercase letters, numbers, and hyphens, end with a number or aletter, be between 1-63 characters, and be unique within the project. The goalof the prefixops-agents-is to easilydistinguish these Ops Agents specific policies from other generic policies andlower the chance of naming conflicts.ops-agents-
- 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
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudcomputeinstancesops-agentspoliciesdeletegcloudbetacomputeinstancesops-agentspoliciesdelete
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-05-07 UTC.