To delete the global forwarding rule "fr-elb" for a load balancer, run:
gdcloud compute forwarding-rules delete fr-ilb \
--load-balancing-scheme=INTERNAL \
--global
To delete the zonal forwarding rule "fr-elb" for a load balancer, run:
gdcloud compute forwarding-rules delete fr-elb \
--load-balancing-scheme=EXTERNAL
REQUIRED FLAGS
--load-balancing-scheme string Load balancing scheme of the forwarding rule. Available values are INTERNAL or EXTERNAL.
OPTIONAL FLAGS
--global If set, the global forwarding rule is deleted.
--zone string Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-12 UTC."],[[["The `gdcloud compute forwarding-rules delete` command is used to remove forwarding rules associated with a load balancer."],["You can delete either global or zonal forwarding rules by specifying the `--global` flag or the `--zone` flag."],["The `--load-balancing-scheme` flag is required and determines whether the rule is for an INTERNAL or EXTERNAL load balancer."],["Multiple forwarding rules can be deleted simultaneously by listing their names after the `delete` keyword."],["Refer to the gdcloud CLI reference overview for additional details on the CLI tool."]]],[]]