In this Azure article, we will learn the quick steps to uninstall AWS CLI.
Table of Contents
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.
- Open the Control Panel –> Click on Programs –> Click on Programs and Features.
- Select the AWS Command Line Interface and click the Uninstall button, as highlighted below.

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 !!!

I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.