user14547655
user14547655

Reputation:

How to uninstall flutter in mac?

I want to uninstall flutter in mac and make sure no related configuration files are there in the mac catalina

how can I do that?

Upvotes: 5

Views: 11514

Answers (1)

Gazihan Alankus
Gazihan Alankus

Reputation: 11984

You extracted a zip to install Flutter. You probably also set the path.

This should use the path to find the Flutter installation and remove it:

rm -rf `dirname \`which flutter\``/..

Then you should edit the .zshenv file in your home directory and remove the line that adds Flutter to path:

open -a TextEdit ~/.zshenv

Then edit it so:

...
# FIND THIS LINE BELOW THAT HAS Flutter AND REMOVE THAT LINE
export PATH=${PATH}:/Users/$USER/Flutter/flutter/bin 
...

Also, there are some config files in your home directory:

ls -al

drwxr-xr-x    3 user  staff         96 Jul 12 19:51 .dart
drwxr-xr-x    4 user  staff        128 Jul 12 19:51 .dartServer
-rw-r--r--    1 user  staff         78 Jul 12 19:51 .flutter
-rw-r--r--    1 user  staff         25 Jul 14 10:30 .flutter_settings
-rw-r--r--    1 user  staff        210 Oct 17 09:47 .flutter_tool_state

You can remove these as such:

rm -rf ~/.dart*
rm -rf ~/.flutter*

This should take care of removing Flutter from your system. You can also open your IDE and remove the Flutter and Dart plugins to complete the picture. Sorry to see you go!

Upvotes: 7

Related Questions