'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.



Solution 1:[1]

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:[2]

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:[3]

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:[4]

This worked for me actually:

sudo npm uninstall -g flutter-cli

Solution 5:[5]

The following worked for me:

snap remove flutter

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 João Soares
Solution 2 Suragch
Solution 3 Vinoth Vino
Solution 4 Emiel VdV
Solution 5 Ilias Sebati