You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Ubuntu(含16.04版本)上卸载Flutter?

Uninstall Flutter from Ubuntu 16.04

Hey there! Let’s get Flutter fully removed from your Ubuntu 16.04 system—no leftover files or settings behind. Follow these steps:

1. Delete the Flutter SDK directory

First, locate where you installed the Flutter SDK. Common paths are ~/flutter (your home folder) or /usr/local/flutter. Once you confirm the path, run this command to delete it entirely:

rm -rf /path/to/your/flutter/directory

Note: Double-check the path before running this—you don’t want to accidentally delete other important files!

2. Clean up environment variables

When you installed Flutter, you probably added its bin directory to your system’s PATH. You’ll need to remove that line from your shell configuration files:

  • Open your ~/.bashrc file (most Ubuntu users use Bash) with a text editor:
    nano ~/.bashrc
    
  • Look for a line that looks like this:
    export PATH="$PATH:$HOME/flutter/bin"
    
  • Delete that line, save the file (Ctrl+O, then Enter), and exit nano (Ctrl+X).
  • Apply the changes immediately by running:
    source ~/.bashrc
    

If you added the path to other files like ~/.bash_profile or /etc/profile, repeat this process for those too.

3. Remove IDE plugins (if applicable)

If you used Flutter with an IDE like VS Code or Android Studio, don’t forget to uninstall the associated plugins:

  • VS Code: Open the Extensions panel (Ctrl+Shift+X), search for "Flutter" and "Dart", then click the "Uninstall" button for each.
  • Android Studio: Go to File > Settings > Plugins, find the Flutter and Dart plugins in the list, click the gear icon, and select "Uninstall".

4. Delete residual cache files

Flutter stores cache and package data in hidden folders. Remove these with:

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

5. Verify the uninstallation

Open a new terminal window (important—old sessions might still have cached PATH data) and run:

flutter --version

If you see a message like flutter: command not found, congratulations—Flutter is fully uninstalled!

内容的提问来源于stack exchange,提问作者Awenig Marié

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 09:50:51