gdcloud iam roles delete ROLE_NAME [--project=PROJECT] [flags]
說明
這項指令會刪除專案範圍的自訂角色。如果提供 --project 旗標,則會刪除機構範圍的自訂角色。
範例
To delete a custom role at organization scope, run:
gdcloud iam roles delete org-role
To delete a custom role at project scope, run:
gdcloud iam roles delete project-role --project my-project
[[["容易理解","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 (世界標準時間)。"],[[["\u003cp\u003eThis command \u003ccode\u003egdcloud iam roles delete\u003c/code\u003e is used to delete a custom role within either a project or organization.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eROLE_NAME\u003c/code\u003e argument specifies the custom role to be deleted.\u003c/p\u003e\n"],["\u003cp\u003eAdding the \u003ccode\u003e--project\u003c/code\u003e flag allows for the deletion of a custom role at the project level.\u003c/p\u003e\n"],["\u003cp\u003eOmitting the \u003ccode\u003e--project\u003c/code\u003e flag results in the command deleting a custom role at the organization level.\u003c/p\u003e\n"]]],[],null,["# gdcloud iam roles delete\n\nNAME\n----\n\ngdcloud iam roles delete - Delete a custom role.\n\nSYNOPSIS\n--------\n\n gdcloud iam roles delete ROLE_NAME [--project=PROJECT] [flags]\n\nDESCRIPTION\n-----------\n\nThis command deletes a custom role at project scope, If the --project flag is provided, otherwise, it deletes a custom role at an organization-scope.\n\n### EXAMPLES\n\n\n To delete a custom role at organization scope, run:\n\n gdcloud iam roles delete org-role\n\n To delete a custom role at project scope, run:\n\n gdcloud iam roles delete project-role --project my-project\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."]]