Remove an old access key from an IAM user.
Section: Roles, Trust, and Access Keys
Delete an access key
bash
bash
aws iam delete-access-key --user-name deploy-bot --access-key-id AKIAIOSFODNN7EXAMPLEExplanation
Use after confirming replacement credentials work.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Roles, Trust, and Access Keys