To delete a new ingress project network policy that targets all user workloads, allowing only TCP traffic on Port 80 and 81, run:
gdcloud network project-network-policy delete example-policy
OPTIONS GCLOUD GÉNÉRALES
Ces options sont disponibles pour toutes les commandes : --configuration, --format, --help, --project, --quiet.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/05 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/05 (UTC)."],[[["\u003cp\u003eThis command \u003ccode\u003egdcloud network project-network-policies delete\u003c/code\u003e is used to delete project network policies.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires specifying the \u003ccode\u003ePOLICY_NAME\u003c/code\u003e as an argument for deletion.\u003c/p\u003e\n"],["\u003cp\u003eAn example provided demonstrates deleting a network policy named \u003ccode\u003eexample-policy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eCommon flags that can be used with all gdcloud commands are listed, such as \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, and \u003ccode\u003e--project\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# gdcloud network project-network-policies delete\n\nNAME\n----\n\ngdcloud network project-network-policies delete - Delete project network policies.\n\nSYNOPSIS\n--------\n\n gdcloud network project-network-policies delete POLICY_NAME [flags]\n\n### EXAMPLES\n\n To delete a new ingress project network policy that targets all user workloads, allowing only TCP traffic on Port 80 and 81, run:\n\n gdcloud network project-network-policy delete example-policy\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."]]