How to Uninstall Flutter sdk from Windows, macOS, and Linux

In this guide, you’ll learn how to completely uninstall Flutter from Windows, macOS, and Linux, including removing cache, SDK files, environment variables, and hidden directories.

This guide is 2026-ready, beginner-friendly, and ensures no leftover files remain on your system.

Why You May Want to Uninstall Flutter

Developers usually uninstall Flutter for these reasons:

  • Flutter SDK path or version conflicts
  • Corrupted installation or broken dependencies
  • Switching to a different Flutter version or channel
  • Freeing disk space (Flutter cache can exceed 5–10 GB)
  • Moving from Flutter to another framework

How to Uninstall Flutter on Windows

Step 1: Locate Flutter SDK Folder

Most commonly Flutter is installed at:

C:\flutter

or

C:\src\flutter

Step 2: Delete Flutter SDK Directory

  • Open File Explorer
  • Navigate to the Flutter directory
  • Delete the entire flutter folder

Step 3: Remove Flutter from Environment Variables

  1. Open Start Menu
  2. Search for Environment Variables
  3. Click Edit the system environment variables
  4. Select Path
  5. Remove entries like:
C:\flutter\bin

Step 4: Delete Flutter Cache & Config Files

Press Win + R and delete:

%LOCALAPPDATA%\flutter
%APPDATA%\flutter

Also remove Dart cache:

C:\Users\<your-username>\AppData\Local\Pub

Step 5: Restart System

This ensures all environment changes apply correctly.

How to Uninstall Flutter on macOS

Step 1: Find Flutter Directory

Most common locations:

~/development/flutter

or

/opt/flutter

Step 2: Delete Flutter SDK

Open Terminal and run:

rm -rf ~/development/flutter

Step 3: Remove Flutter from PATH

Edit your shell configuration file:

nano ~/.zshrc

or

nano ~/.bash_profile

Remove this line:

export PATH="$PATH:/path-to-flutter/bin"

Save and exit.

Step 4: Remove Flutter Cache & Pub Files

rm -rf ~/.flutter
rm -rf ~/.pub-cache

Step 5: Reload Shell

source ~/.zshrc

How to Uninstall Flutter on Linux (Ubuntu / Debian / Arch)

Step 1: Locate Flutter SDK

Common directories:

~/flutter
~/development/flutter

Step 2: Remove Flutter SDK

rm -rf ~/flutter

Step 3: Remove Flutter PATH Entry

Edit .bashrc or .profile:

nano ~/.bashrc

Remove:

export PATH="$PATH:/home/username/flutter/bin"

Step 4: Remove Cache Files

rm -rf ~/.flutter
rm -rf ~/.pub-cache

Step 5: Restart Terminal

source ~/.bashrc

Verify Flutter Is Completely Removed

Run this command:

flutter doctor

If Flutter is uninstalled correctly, you’ll see:

flutter: command not found

Optional: Remove Android Studio Flutter Plugin

If installed via Android Studio:

  1. Open Android Studio
  2. Go to Settings → Plugins
  3. Search Flutter
  4. Click Uninstall
  5. Restart Android Studio

Common Problems After Uninstalling Flutter

IssueSolution
Flutter still detectedRestart system
Path errorRe-check environment variables
Disk space not freedDelete pub-cache
Android Studio errorsRemove Flutter plugin

Targeted Keywords

  • flutter uninstall not working
  • flutter sdk remove completely
  • flutter cache delete
  • flutter reinstall clean
  • flutter doctor error after uninstall
  • flutter environment variable issue
  • flutter installation corrupted
  • reinstall flutter step by step

Learn how to uninstall Flutter completely from Windows, macOS, and Linux. Step-by-step guide to remove Flutter SDK, cache, environment variables, and plugins safely.

Final Thoughts

Uninstalling Flutter properly is important to avoid future conflicts and wasted disk space. Always remove SDK folders, environment variables, cache, and plugins for a clean system.

If you plan to reinstall Flutter, a clean uninstall ensures a smoother setup next time.

Frequently Asked Questions (FAQ Section)

FAQ 1: Does uninstalling Flutter delete my projects?

No.
Uninstalling Flutter only removes the Flutter SDK and cache, not your Flutter projects. Your project folders remain safe unless you manually delete them.

FAQ 2: How much disk space does Flutter use?

Flutter can use 5–10 GB of disk space due to:
SDK files
Pub cache
Build artifacts
Removing Flutter frees significant space, especially on Windows.

FAQ 3: Why does Flutter still work after uninstalling?

This usually happens because:
Flutter PATH is still set in environment variables
System was not restarted
Remove PATH entries and restart your system.

FAQ 4: Do I need to uninstall Dart separately?

No.
Flutter bundles Dart SDK internally. Removing Flutter also removes Dart used by Flutter.

FAQ 5: Should I uninstall Flutter plugin from Android Studio?

es, recommended.
If Flutter plugin is installed:
Open Android Studio
Go to Plugins → Flutter
Click Uninstall
This prevents IDE errors.

FAQ 6: Is there a Flutter uninstall command?

Flutter does not provide an official uninstall command.
Manual removal of SDK, cache, and PATH is required.

FAQ 7: Should I delete .pub-cache?

Yes.
Deleting .pub-cache removes unused packages and saves disk space. It will regenerate automatically if Flutter is reinstalled.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More