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
必須フラグ
--load-balancing-scheme string Load balancing scheme of the forwarding rule. Available values are INTERNAL or EXTERNAL.
オプションのフラグ
--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.
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003egdcloud compute forwarding-rules delete\u003c/code\u003e command is used to remove forwarding rules associated with a load balancer.\u003c/p\u003e\n"],["\u003cp\u003eYou can delete either global or zonal forwarding rules by specifying the \u003ccode\u003e--global\u003c/code\u003e flag or the \u003ccode\u003e--zone\u003c/code\u003e flag.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--load-balancing-scheme\u003c/code\u003e flag is required and determines whether the rule is for an INTERNAL or EXTERNAL load balancer.\u003c/p\u003e\n"],["\u003cp\u003eMultiple forwarding rules can be deleted simultaneously by listing their names after the \u003ccode\u003edelete\u003c/code\u003e keyword.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the gdcloud CLI reference overview for additional details on the CLI tool.\u003c/p\u003e\n"]]],[],null,["# gdcloud compute forwarding-rules delete\n\nNAME\n----\n\ngdcloud compute forwarding-rules delete - Delete forwarding rules for a load balancer.\n\nSYNOPSIS\n--------\n\n gdcloud compute forwarding-rules delete FORWARDING_RULE_NAME [FORWARDING_RULE_NAME...] [flags]\n\n### EXAMPLES\n\n To delete the global forwarding rule \"fr-elb\" for a load balancer, run:\n\n gdcloud compute forwarding-rules delete fr-ilb \\\n --load-balancing-scheme=INTERNAL \\\n --global\n\n To delete the zonal forwarding rule \"fr-elb\" for a load balancer, run:\n\n gdcloud compute forwarding-rules delete fr-elb \\\n --load-balancing-scheme=EXTERNAL\n\n### REQUIRED FLAGS\n\n --load-balancing-scheme string Load balancing scheme of the forwarding rule. Available values are INTERNAL or EXTERNAL.\n\n### OPTIONAL FLAGS\n\n --global If set, the global forwarding rule is deleted.\n --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.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]