How do you uninstall Flutter completely and properly from a Mac?
FlutterFlutter 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