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

Flutter

Flutter Problem Overview


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

Flutter Solutions


Solution 1 - Flutter

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.

Solution 2 - Flutter

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

Solution 3 - Flutter

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.

Solution 4 - Flutter

This worked for me actually:

sudo npm uninstall -g flutter-cli

Solution 5 - Flutter

The following worked for me:

snap remove flutter

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPedram-1View Question on Stackoverflow
Solution 1 - FlutterJoão SoaresView Answer on Stackoverflow
Solution 2 - FlutterGroovy GuevaraView Answer on Stackoverflow
Solution 3 - FlutterVinoth VinoView Answer on Stackoverflow
Solution 4 - FlutterEmiel VdVView Answer on Stackoverflow
Solution 5 - FlutterIlias Sebati View Answer on Stackoverflow