How to uninstall AWSCLI version 2 on Linux

Locate aws.

<pre lang="bash">
$ which aws
/usr/local/bin/aws

Delete the symlinks.

<pre lang="bash">
$ ls -l /usr/local/bin/aws
$ sudo rm /usr/local/bin/aws
$ sudo rm /usr/local/bin/aws_completer

Delete the install directory.

<pre lang="bash">
$ sudo rm -rf /usr/local/aws-cli

Once deleted, you can reinstall awscli.