delete-role
The aws iam delete-role
command is used to delete a specific role from IAM. This is an important step in role lifecycle management, especially when a role is no longer needed or requires replacement.
Syntax
aws iam delete-role \
--role-name ROLE_NAME
Options
--role-name ROLE_NAME
: The name of the IAM role to delete.
See also the original AWS documentation.