The AWS CLI can be installed using several methods: this article attempts to address uninstalling through many of them.
Uninstall AWS CLI using Pip
1
2
3
| pip3 uninstall awscli -y
# OR
pip uninstall awscli -y
|
Uninstall AWS CLI on Ubuntu
1
| sudo apt-get remove --auto-remove awscli
|
Uninstall AWS CLI using Brew on MacOS
Uninstall AWS CLI using Snap
1
| sudo snap rm -r aws-cli
|
Uninstall AWS CLI with Yum
Uninstall AWS CLI manually
If all else fails, uninstalling manually is a remaining option. Determine the executing path for the AWS CLI:
Then remove:
1
| sudo rm -rf "path from previous command"
|