How to uninstall AWS CLI

In this Azure article, we will learn the quick steps to uninstall AWS CLI.

Uninstall AWS CLI Windows

Well, if you have decided to uninstall the AWS CLI, you can follow the below steps to uninstall the AWS CLI from Windows.

  1. Open the Control Panel –> Click on Programs â€“> Click on Programs and Features.
  2. Select the AWS Command Line Interface and click the Uninstall button, as highlighted below.
How to uninstall AWS CLI

You can also right-click the AWS Command Line Interface and then select the Uninstall option.

3. Click the Yes button to confirm the uninstallation process on the next pop-up.

Uninstall AWS CLI Ubuntu

If you have decided to uninstall the AWS CLI on Ubuntu, you can do that using the below commands.

Execute the below command to uninstall AWS CLI on Ubuntu.

sudo apt-get remove  awscli

If you want to uninstall the AWS CLI package and its dependencies, you can use the below command.

sudo apt-get remove --auto-remove awscli

Now, if you want to remove the AWS CLI and all the configurations, you can use the below command

sudo apt-get purge awscli

Or, for the same purpose, you can also use the below command.

sudo apt-get purge --auto-remove awscli

Uninstall AWS CLI Linux

You can easily uninstall the AWS CLI on Linux by removing the two items below using the two commands below

$ sudo rm -rf /usr/local/aws
$ sudo rm /usr/local/bin/aws

How to uninstall AWS CLI on mac

You can easily uninstall aws cli on mac by removing the two items below using the two commands below

$ sudo rm -rf /usr/local/aws
$ sudo rm /usr/local/bin/aws

You can also uninstall the AWS CLI using the pip command

$ pip3 uninstall awscli

You may also like following the below articles

Conclusion

In this article, we discussed how to uninstall AWS CLI on Windows, Linux and mac. Thanks for reading this article !!!