Step 5: Delete the Lambda
Function and IAM Role (AWS CLI)

Delete the IAM Role

After you delete the Lambda function you can also delete the IAM role you created
in the IAM console. For information about deleting a role, see Deleting Roles or Instance Profiles
in the IAM User Guide.