Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to uninstall Bazel #838

Closed
Jacobh2 opened this issue Feb 2, 2016 · 9 comments
Closed

How to uninstall Bazel #838

Jacobh2 opened this issue Feb 2, 2016 · 9 comments

Comments

@Jacobh2
Copy link

Jacobh2 commented Feb 2, 2016

Hi!

I installed Bazel using the steps here http://bazel.io/docs/install.html.

But now I want to uninstall it. How do I go about doing that?

@damienmg
Copy link
Contributor

damienmg commented Feb 2, 2016

rm -fr ~/.bazel ~/.bazelrc

On Tue, Feb 2, 2016 at 11:23 AM Jacob Hagstedt P Suorra <
[email protected]> wrote:

Hi!

I installed Bazel using the steps here http://bazelio/docs/installhtml

But now I want to uninstall it How do I go about doing that?


Reply to this email directly or view it on GitHub
#838.

@damienmg
Copy link
Contributor

damienmg commented Feb 2, 2016

Be careful not to mixed up with that command. But it basically recursively remove ~/.bazel and ~/.bazelrc

@ahumesky
Copy link
Contributor

ahumesky commented Feb 4, 2016

Bazel also creates a directory at ~/.cache/bazel which you might want to remove (it may have been created at /tmp if it couldn't find your home directory, and on mac os it's /var/tmp)

@Jacobh2
Copy link
Author

Jacobh2 commented Feb 4, 2016

Found it at ~/.cache/bazel! Thanks!

@seven-dev
Copy link

Also the executable in ~/bin

@robosina
Copy link

Also I found an executable of bazel in this path /usr/local/bin/bazel

@mbelalsh
Copy link

This command worked for me: sudo apt-get --purge remove bazel

@crazyjat
Copy link

crazyjat commented May 4, 2024

How do on windows?

@ShahriarAlom
Copy link

ShahriarAlom commented Jan 11, 2025

sudo rm -fr ~/.bazel ~/.bazelrc ~/usr/local/lib/bazel ~/.cache/bazel
delete all above files and folders,
then look into the usr/bin for bazel file, you will find bazel file with version if you have installed using sudo, then uninstall them by sudo apt-get --purge remove bazel-<version> (one by one if installed multiple version)
after that install bazel proper way and promise never to install bazel without knowing the proper way!

you can install it using sudo and you just need to keep only one bazel version that matches your need, this way you don't need any env path setup.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants