Deletes a RAM role.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeleteRole

The name of this action.

Value: DeleteRole

RoleName String Yes ECSAdmin The name of the RAM role to be deleted.

Response parameters

Parameter Type Example value Description
RequestId String 898FAB24-7509-43EE-A287-086FE4C44394 The request ID.

Example

Request example

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

Response example

XML format

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

JSON format

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

Errors

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