Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

flutter

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

like image 945
Pedram-1 Avatar asked Jan 15 '20 22:01

Pedram-1


People also ask

How do you get the flutter path on a Mac?

Add Flutter to your PATH The easiest way to do this is by using the terminal to navigate into the flutter/bin folder and use the pwd command to print the current working directory. Copy the result of the pwd command. This is the path to your Flutters bin folder, which we will need in a second.


3 Answers

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.

like image 133
João Soares Avatar answered Nov 12 '22 01:11

João Soares


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
like image 38
Groovy Guevara Avatar answered Nov 12 '22 02:11

Groovy Guevara


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.

like image 42
Vinoth Vino Avatar answered Nov 12 '22 01:11

Vinoth Vino