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