Delete a RAM role that is no longer needed.
Procedure
-
Log in to the RAM console as a RAM administrator.
-
In the navigation pane on the left, go to .
-
On the Roles page, find the RAM role that you want to delete and click Delete Role in the Actions column.
-
In the Delete Role dialog box, enter the RAM role name and click Delete Role.
Role names are case-sensitive. The name you enter must exactly match the name displayed in the role list. Otherwise, the Delete Role button remains disabled. Service-linked roles often use camelCase names, such as
AliyunServiceRoleForSmartService. To avoid errors, copy the role name from the role list and paste it into the confirmation text box.If policies are attached to the RAM role, they are automatically detached when you delete the role.
Deleting a service-linked role that is in use by its corresponding cloud service will fail. You must first go to the cloud service console to remove its dependency on the role, and then retry the deletion. For more information about service-linked roles, see Service-linked roles.
After you submit the deletion request, the role's status changes to Deleting. Once the asynchronous deletion is complete, the role is removed from the role list.
If a deletion task fails, click Role Deletion Tasks in the upper-right corner of the role list to view the details.