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

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

1
brew uninstall awscli

Uninstall AWS CLI using Snap

1
sudo snap rm -r aws-cli

Uninstall AWS CLI with Yum

1
sudo yum erase awscli

Uninstall AWS CLI manually

If all else fails, uninstalling manually is a remaining option. Determine the executing path for the AWS CLI:

1
which aws

Then remove:

1
sudo rm -rf "path from previous command"