Deletes a RAM role.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteRole

The operation that you want to perform. Set the value to DeleteRole.

RoleName String Yes ECSAdmin

The name of the RAM role.

Response parameters

Parameter Type Example Description
RequestId String 898FAB24-7509-43EE-A287-086FE4C44394

The ID of the request.

Examples

Sample requests


https://ram.aliyuncs.com/?Action=DeleteRole
&RoleName=ECSAdmin
&<Common request parameters>

Sample success responses

XML format

<DeleteRoleResponse>
      <RequestId>898FAB24-7509-43EE-A287-086FE4C44394</RequestId>
</DeleteRoleResponse>

JSON format

{
	"RequestId":"898FAB24-7509-43EE-A287-086FE4C44394"
}

Error codes

For a list of error codes, visit the API Error Center.