public sealed class DeleteRoleRequest : IMessage<DeleteRoleRequest>, IEquatable<DeleteRoleRequest>, IDeepCloneable<DeleteRoleRequest>, IBufferMessage, IMessage
The name parameter's value depends on the target resource for the
request, namely
projects or
organizations. Each
resource type's name value format is described below:
projects.roles.delete():
projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}. This method deletes only
custom roles that have been
created at the project level. Example request URL:
https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
organizations.roles.delete():
organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}. This method
deletes only custom roles that
have been created at the organization level. Example request URL:
https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project
ID or organization ID.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document outlines the \u003ccode\u003eDeleteRoleRequest\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Iam.Admin.V1\u003c/code\u003e namespace, used to request the deletion of an existing IAM role.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for this class is 2.4.0, with prior versions including 2.3.0, 2.2.0, 2.1.0, 2.0.0, 1.2.0, 1.1.0, and 1.0.0 also accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteRoleRequest\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the base \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties such as \u003ccode\u003eEtag\u003c/code\u003e, which is used for consistent read-modify-write operations, \u003ccode\u003eName\u003c/code\u003e, which specifies the target resource and custom role ID, and \u003ccode\u003eResourceName\u003c/code\u003e, which is an \u003ccode\u003eIResourceName\u003c/code\u003e-typed view of the \u003ccode\u003eName\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThis class has two constructors \u003ccode\u003eDeleteRoleRequest()\u003c/code\u003e, and \u003ccode\u003eDeleteRoleRequest(DeleteRoleRequest other)\u003c/code\u003e which take in either no parameters or a parameter of type \u003ccode\u003eDeleteRoleRequest\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]