Pedram-1
Pedram-1

Reputation: 889

How do you uninstall Flutter completely and properly from a Mac?

I need to uninstall Flutter completely from my Mac. However, I cannot find any documentation that can help me with that.

Upvotes: 75

Views: 141870

Answers (9)

Mayur Kukreja
Mayur Kukreja

Reputation: 19

If you have HomeBrew installed on your Mac OS, just execute below command in your terminal

brew remove flutter

This command will uninstall Flutter completely and properly from your Mac

Upvotes: 0

Jack Lippold
Jack Lippold

Reputation: 51

For those who installed flutter with brew, it’s best practice to also uninstall with brew.

brew uninstall flutter

Upvotes: 3

Md. Omar Hasan
Md. Omar Hasan

Reputation: 83

To uninstall flutter from Mac OS M1, here are the steps you can take:

  1. Check flutter path which flutter
  2. cd to that directory
  3. remove the directory rm -rf flutter
  4. check the command again which flutter, you will get this message flutter not found

Upvotes: 3

yassine menssi
yassine menssi

Reputation: 373

To uninstall flutter from a Mac using the command line :

1.Open Terminal.

2.In Terminal, type the following command to list all the installed applications: ls /Applications

cd ~/flutter

3.To uninstall the flutter application, use the command:

sudo ./flutter/uninstall


sudo rm -rf /Applications/Flutter.app 

Upvotes: 1

Ilias Sebati
Ilias Sebati

Reputation: 69

The following worked for me:

snap remove flutter

Upvotes: 3

Emiel VdV
Emiel VdV

Reputation: 297

This worked for me actually:

sudo npm uninstall -g flutter-cli

Upvotes: -4

Vinoth
Vinoth

Reputation: 9734

To find your flutter sdk installed path. use which flutter command and then delete the Flutter SDK folder.

Note: This command only works if you set the path correctly.

Upvotes: 23

Groovy Guevara
Groovy Guevara

Reputation: 381

just rm -rf the sdk folder, or if you just want to clean a corrupt run the following commands in the Flutter install directory:

git clean -xfd
git stash save --keep-index
git stash drop
git pull
flutter doctor

Upvotes: 26

J. S.
J. S.

Reputation: 9625

Flutter is an SDK that you download and unpack onto a directory in your Mac. There is no automatic uninstall process in the same way that there is no automatic install process. You "installed" it by downloading a zip file and unzipping it. All you have to do is remove the contents of the directory where you unzipped it in.

Even the path addition to be able to call the flutter command from anywhere in your system has to be done manually. If you did that, then you can remove it as well from your shell's PATH.

Upvotes: 43

Related Questions