Digital Marketing

How to Uninstall Flutter on Linux (Ubuntu), Windows and MacOs? The Complete Step-by-Step Guide

By Steven, on December 5, 2024 - 3 min read

Flutter is an excellent toolkit for developing cross-platform apps. However, it takes up quite a bit of space and installs many files on your computer. If you don’t plan on using it or want to do some cleaning, uninstalling it is a good idea. The problem is that it’s not always straightforward…

You installed Flutter and can’t figure out how to uninstall it? Don’t panic, Debugbar will explain how to cleanly uninstall Flutter on Linux, Windows and MacOS step-by-step.

How to Uninstall Flutter on Windows?

Complete uninstallation of Flutter on Windows is very simple, just follow these steps:

  1. Click the Start button in the bottom left corner of your screen.
  2. Search for Android Studio and open it.
start android studio
  1. Click File in the top left corner of your screen.
  2. Choose Settings.
click file
  1. Click the Plugins tab on the left column.
  2. Go to the Installed tab next to the Marketplace tab in the pop-up window header.
plugin colonne flutter
  1. Click the drop-down menu and select Uninstall.
desinstaller flutter
  1. Confirm the action by clicking Restart.
redemarrer android studio
  1. Once Android Studio has restarted, click File then Close Project.
  2. Then, open the file explorer and go to the Flutter install directory (usually C:\src\flutter) then delete it by pressing the Delete key on your keyboard or by right clicking > delete.
disque c
fichier src
  1. Open the System Settings on your computer. Go to Advanced -> Environment Variables.
variiables environnement windows
  1. Click System Variables.
variables systeme
  1. Look for the Flutter path in the PATH variable and click Edit.
path
  1. Click the line and delete “C:/src/flutter/flutter/bin” then press “OK”.
supprimer c src

Good to know: Also delete the .dart, .flutter and .pub-cache directories in your user directory for a complete uninstall.

That’s it! Thanks to this method Flutter is now uninstalled from your Windows computer. These simple steps completely remove Flutter and free up disk space.

How to Uninstall Flutter on Linux?

You use Linux and want to cleanly uninstall Flutter SDK? No problem, the procedure on Linux is quite simple too. Here are the steps to completely remove Flutter:

To uninstall Flutter on Linux, do the following:

  1. Open a terminal (Ctrl + alt + T) and type: sudo snap remove flutter then sudo apt-get purge flutter

You can also follow this method to uninstall the Flutter SDK directory:

  1. Open a command prompt and type: rm -rf ~/development/flutter
  2. You will then need to delete the following directories if you want to keep nothing: ~/.flutter

    ~/.flutter-devtools

    ~/.flutter_settings

To do this you will need to type the following command: rm -rf ~/.flutter*

Then, you’ll have to remove Dart directories by typing rm -rf ~/.dart*

To finish you will have to remove the pub package files by typing : rm -rf ~/.pub-cache

That’s it, Flutter is uninstalled from your Linux distribution! Thanks to these simple terminal commands, you were able to completely remove Flutter from your system. Your Linux is now lighter and cleaner.

How to Uninstall Flutter on MacOS?

You installed Flutter on your Mac but want to clean up by completely uninstalling it? Nothing could be easier, just follow the following method to cleanly remove Flutter on MacOS.

To uninstall Flutter on MacOS, do this:

  1. Open the Terminal (cmd + space) and type: flutter –version
flutter version mac 2
  1. Once the command has executed, type: cd ~ then ls -a then rm -rf flutter
6command mac
rm rf flutter
  1. Then type: nano ~/.bash_profile
nano bash
  1. In the output of the execution (at the bottom) find the PATH line ending in “flutter/bin:$PATH“, delete it and save.
flutter bin path

You can then finish the uninstall as follows:

  1. Open Android Studio.
  2. Select the Plugins tab in the left column.
  3. Find Flutter and select it.
android studio mac
  1. In the right part of your screen, click the small cog wheel next to the Update button.
  2. Select Uninstall from the drop-down menu.
uninstall flutter android mac
  1. Select Yes and click Restart.
restart flutter mac

You have now successfully uninstalled Flutter from your Mac! Thanks to these simple terminal command steps, Flutter is completely removed from your system.

Steven