Go to the IAM console: https://console.aws.amazon.com/iam
Select Roles of Access management on the left Dashboard and search for CodeQuality-Workshop-WebAppRole
in the search box. Click the checkbox of the search results and select Delete role.
Select Yes, Delete for Delete role.