- NAME
- 
- gcloud beta compute instances ops-agents policies delete - delete a Google Cloud's operations suite agents (Ops Agents) policy
 
- SYNOPSIS
- 
- 
gcloud beta compute instances ops-agents policies deletePOLICY_ID[GCLOUD_WIDE_FLAG …]
 
- 
- DESCRIPTION
- 
(BETA)gcloud beta compute instances ops-agents policies deletedeletes a policy that facilitates agent management across Compute Engine 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. After a policy is deleted, it takes 10-15 minutes to be wiped from the applicable instances. Deleting a policy does not delete any existing agents managed by that policy, but the agents become unmanaged by any policies. To remove the agents from the instances, first update the policy to set the agent package-stateremoved
- EXAMPLES
- 
To delete an Ops agents policy named
ops-agents-test-policygcloud beta compute instances ops-agents policies delete ops-agents-test-policy
- POSITIONAL ARGUMENTS
- 
- POLICY_ID
- 
ID of the policy.
This ID must start with ops-agents-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 beta and might change without notice. These
variants are also available:
gcloud compute instances ops-agents policies deletegcloud alpha compute instances ops-agents policies delete
      gcloud beta compute instances ops-agents policies delete
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.