This topic describes how to delete a RAM role that you no longer need.

Prerequisites

No policies are attached to the RAM role.

Procedure

  1. Log on to the RAM console by using an Alibaba Cloud account.
  2. In the left-side navigation pane, click RAM Roles.
  3. On the RAM Roles page, find the target RAM role in the RAM Role Name column, and click Delete in the Actions column.
  4. In the message that appears, click OK.
    Note If you delete a service linked role, Deleting appears in the Actions column. The delete operation takes a few minutes to complete. After the role is deleted, a success message appears. If a RAM role fails to be deleted, click View Details in the error message and troubleshoot the error.