gcloud vmware network-policies delete Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud vmware network-policies delete - delete a VMware Engine network policy
- SYNOPSIS
gcloud vmware network-policies delete(NETWORK_POLICY:--location=LOCATION)[--async][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Delete a VMware Engine network policy.
- EXAMPLES
- To delete a network policy called
my-network-policyin projectmy-projectand regionus-west2, run:gcloudvmwarenetwork-policiesdeletemy-network-policy--location=us-west2--project=my-projectOr:
gcloudvmwarenetwork-policiesdeletemy-network-policyIn the second example, the project and the location are taken from gcloudproperties core/project and compute/region respectively.
- POSITIONAL ARGUMENTS
- VMware Engine Network Policy resource - network_policy. 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 the
projectattribute:- provide the argument
network_policyon the command line with afully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
NETWORK_POLICY- ID of the VMware Engine Network Policy or fully qualified identifier for theVMware Engine Network Policy.
To set the
network-policyattribute:- provide the argument
network_policyon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--location=LOCATION- The resource name of the location.
To set the
locationattribute:- provide the argument
network_policyon the command line with afully specified name; - provide the argument
--locationon the command line; - set the property
compute/region.
- provide the argument
- provide the argument
- VMware Engine Network Policy resource - network_policy. 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.
- FLAGS
--async- Return immediately, without waiting for the operation in progress to complete.The default is
True. Enabled by default, use--no-asyncto disable.
- 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.
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.