F

LutterAdda

How to uninstall flutter?

Here are the steps to uninstall Flutter from your system:



Step 1: Remove the Flutter SDK


  1. Locate the Flutter SDK directory on your computer. The default installation directory for Flutter is typically "C:\flutter" on Windows or "/flutter" on macOS or Linux.
  2. Delete the entire Flutter SDK directory by moving it to the trash or using the appropriate delete command for your operating system.

Step 2: Remove Flutter from the Environment Variables (Windows)



  1. Open the Start menu and search for "Environment Variables."
  2. Select "Edit the system environment variables."
  3. In the System Properties window, click the "Environment Variables" button.
  4. Under "System variables," select the "Path" variable and click "Edit."
  5. Locate the entry for Flutter in the list of paths and delete it.
  6. Click "OK" to save the changes.

Step 3: Remove Flutter from the Environment Variables (macOS and Linux)



  1. Open a terminal window.
  2. Type the following command to open the Bash profile or Zshrc file (depending on your setup):
  3. macOS
  4.     open ~/.bash_profile
                                
  5. linux
  6.     gedit ~/.bashrc (replace "gedit" with your preferred text editor)
                                
  7. Locate the line that sets the "PATH" variable to include the Flutter SDK directory.
  8. Remove the line or comment it out by adding a "#" at the beginning.
  9. Save the file and close the editor.