How do I completely Uninstall Flutter SDK from Windows - windows

How do I completely uninstall Flutter SDK from Windows?
I tried to delete the Flutter Folder I had cloned from GitHub but that's not working for some reason.

You have to delete flutter extension in Android Studio if you installed it, then, check envirment variables then you removes paths if exists. Finally, kill adb.exe if it's running (this may blocks you in removing folder)

Go to C drive and delete flutter folder completely, if it shows that it Opened in some app, then just restart the device and delete the folder again, it worked for me.

If you go to the dir where you cloned dir and delete it. That should remove the command line tool.
rm -rf flutter
re-install git clone https://github.com/flutter/flutter.git -b stable

Uninstall Flutter with its uninstaller.exe.
to do that
a. Go to the installation folder of Flutter.
b. Find uninstall.exe or unins000.exe.
c. double click and run it.

Related

issue with all >1.2 flutter version on mac

17.5 ( last before 1.2 ) and when I try to upgrade to 1.2 or more I have
Warning: Podfile is out of date
This can cause issues if your application depends on plugins that do not support iOS.
See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms for details.
If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/45197 for instructions.
To regenerate the Podfile, run:
rm ios/Podfile
I tried rm ios/Podfile
rm: ios/Podfile: No such file or directory
I follow issue and solution but not working with me ... Or did wrong things
If someone can help me thank you
[Edit] : I remove podfil, and It's ok, thank you for help
Find where your project file is stored in finder. Or by typing find ~/ -type f -name "YOUR PROJECT NAME" in terminal. list your files by typing ls and go into the ios file in your flutter project, then type rm Podfile. This should delete the podfile, and once you run the project again, the pods will be installed via flutter
Best thing to do here is regenerate the iOS Project.
If you have made any changes to the native solution (Xcode), meaning new view controllers, assets, or video files, etc, then make sure to back those up first.
Then delete the iOS project, from your flutter project workspace, and run the following command:
flutter create -i swift .
This will generate a swift solution, but if you're looking for objective-c then try this:
flutter create -i objc .
After the iOS project is recreated, you will need to clean the project, then make sure that the podfile exists in your project directory.
Then run:
cd ios
podfile install
After the podfile installs all the required dependencies, try a fresh deployment of your iOS project:
flutter run -d "Device Name" --release
But make sure that you are running flutter on the root directory, so:
cd ..

Flutter - running command "flutter _____" instantly closes terminal

Dealing with some significant frustration trying to set up my environment variables just to run Flutter. in my path, I've tried many suggestions to try setting up my Path route so that the Flutter Console (or cmd) can successfully run the command "flutter doctor" just to download all the packages, etc. But the problem is as soon as I run this command, it instantly closes my terminal. There isn't anything happening, the terminal just closes. Any help would be appreciated, and I've attached my screenshots of my Path envs to maybe help out some more.
envs
I also get the same problem i.e whenever I hit the flutter doctor command; the terminal instantly closes.
Solution :
Add the following to the system variable path.
C:\Windows\System32\WindowsPowerShell\v1.0
everything will work fine
I was facing the same issue and I resolved it: the problem was PowerShell version.
I am using Windows 8 and by default it has version 4.
Flutter needs version 5.0, so I upgraded my PowerShell.
Add this to system variable PATH:
C:\Windows\System32\WindowsPowerShell\v1.0
Open cmd as admin and set variables:
setx /M FLUTTER_HOME "C:\flutter" <---- here folder where your flutter is
setx /M PATH "%FLUTTER_HOME%\bin;%PATH%"
Add PowerShell path to your PATH in environment variables if not exists.
In my case C:\Windows\System32\WindowsPowerShell\v1.0 added to the PATH
Add Only these in the path and it will surely work. ONLY FOR WINDOWS
enter image description here
Note: Flutter relies on a full installation of Android Studio to
supply its Android platform dependencies. However, you can write your
Flutter apps in a number of editors; a later step discusses that.
(https://flutter.dev/docs/get-started/install/windows)
You could try to install android studio on your machine and try again.
Download Flutter SDK again and change your Flutter SDK path and update new path in
environment variable and restart your IDE
The problem is of powershell only. In my case I mistakenly used ; at the end of path which was creating problem.
Perhaps it's like when you run a bat file and Windows closes it because there's no pause command at the end?
When I ran a bat file with the same command from sublime, i saw that it said this in sublime's output...
C:\!\flutter>flutter doctor
Error: The Flutter directory is not a clone of the GitHub project.
The flutter tool requires Git in order to operate properly;
to set up Flutter, run the following command:
git clone -b stable https://github.com/flutter/flutter.git
Solution: Put your folder at C:\flutter. I don't know why but it fixed this. My PATH is C:\flutter\bin. The "location of the sdk" is C:\flutter.
I have the solution
go to C:/ in windows
create a src folder
into your src folder run this
git clone -b stable https://github.com/flutter/flutter.git
setup your env variables with this path= C:/src/flutter
problem solved!
For me the problem was, that in my BIOS the Virtualization Technology.
in my case non of the answers worked even adding C:\Windows\System32\WindowsPowerShell\v1.0 didn't fix the problem.
the only solution that worked for me is running the command or terminal as an administrator

"flutter doctor" not working

I've downloaded Flutter SDK as mentioned on https://flutter.io/setup-windows/ and also extracted it. Now when I try to run any Flutter command on the flutter_console.bat or any other CLI the prompts starts blinking forever and nothing happens! I've set the path correctly. Did not find any help from web!
Try running the flutter_console.bat as Administrator
If you delete cache folder under bin to solve some installation issues, this cause a endless loop in flutter doctor. This was my case.
I had the same issue when my flutter directory wasn't located directly in my C:/ drive ("C:/flutter")
I hope you have installed plug-in of flutter and dart
for the working of flutter doctor you need to create system environment variables of - flutter, git , cmd and powershell
like show in image just copy paste path of
**your path may different **
example:
C:\flutter\bin
C:\Windows\System32\WindowsPowerShell\v1.0
C:\Program Files\Git\cmd
C:\Program Files\Git\bin\git.exe
Encountered the same issue on windows. Try extracting the flutter folder in this path C:\Users\YourAccountName\AppData\Local.
Then edit your environment variable and add C:\Users\YourAccountName\AppData\Local\flutter\bin. This solved the issue for me.
I had the same problem, reason was our proxy. I unplugged the network cable and used mobile network of my smartphone via usb host function, that worked for me. After checking and configuring with flutter doctor every following attempt to start flutter doctor or flutter help was successful even with "normal" network.
I extracted flutter to C:\Program Files\ and had same problem. Running command prompt as Administrator did the trick for me. Or extract flutter to another dir where you don't need admin rights.
First, if in your system there is no git installed then first install git.
For my case, I just deleted the whole flutter folder. Download again, extract the folder, cut and paste to the c drive and then update both user variable path and system variable path. I added "C:\flutter\bin" this path inside user variable path and system variable path. Also make sure that:
C:\Windows\System32\WindowsPowerShell\v1.0
C:\Program Files\Git\cmd
C:\Program Files\Git\bin\git.exe
these paths are exist inside the system variable path. Finally I run "flutter doctor" and successfully it run. I also check "dart --version" and there is no problem.
(if you have any confusion about user variable path and system variable path then simply press widow button the type "env" then you will see "Edit the system Environment variables" then press enter and at the last you will see "Environment variables" clik on it and you will see 2 option for variable. One for user variable and another for system variable. select "path" for both and edit.)
My answer is somehow different, although I was using Visual Studio Code, I didn't find the flutter doctor option after pressing ctrl+shift+p.
I solved this issue after finding out, that I didn't choose the trusted system of Visual Studio.
open your path /flutter/bin
then delete cache folder
open terminal
flutter doctor -v
This will fix all problem.
you can just do this>
navigate to flutter bin
cd C:\flutter\bin
C:\flutter\bin> flutter doctor
I installed fresh right now and if you run flutter doctor with console under administrator rights it works for me. If not I have the same behavior as described in your post.
For some reason the latest version that I installed did not work! Installing lower version with same configuration worked!

How to completely uninstall VS Code on mac?

I need to do a clean installation of VS Code on my mac.
I opened the terminal and removed the .vscode/ from ~. I also deleted the Visual Studio Code.app/ from /. However, after deleting all that and downloading a fresh copy, I installed and open the editor and the editor remembered the last project I had. For me, that means that it is something else I need to delete but I can't find it. I went to the documentation but can't find anything about uninstalling the editor.
Does anyone know how to completely uninstall VSCode from mac?
What I have tried
Following these instructions and doing a new installation of VS Code, but it still keeps remembering the last project I opened.
https://developer.xamarin.com/guides/cross-platform/getting_started/installation/uninstalling_xamarin/#Using_the_Uninstall_Script
Here are all the places where VSCode stores stuff on Mac OS X, besides the Visual Studio Code.app itself, which is in your Applications folder:
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist
rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist
rm -fr ~/Library/Caches/com.microsoft.VSCode
rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/
rm -fr ~/Library/Application\ Support/Code/
rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/.vscode/
Update (Feb 2020): There are potentially also hidden extension directories in your home directories. To get rid of everything make sure you look for those too. They start with .vscode-.
Please run this command with care. Maybe you want to keep extension directories.
rm -rf ~/.vscode*
The solution to my problem was to cd to the following path... /Users/<user>/Library/Application\ Support and delete the folder called Code. That folder contains all the setting and is not overwrite with a new installation. Looking through the entire file structure, VSCode name folder different. Sometimes folders are called .vscode/, or code/, or Visual Studio Code.app.
This worked for me ( VS Code 1.30 with MacOS - High Sierra 10.13.6 )
Step 1:
Close VS Code
Step 2:
rm -rf $HOME/Library/Application\ Support/Code
Step 3:
rm -rf $HOME/.vscode
Step 4:
Remove VSCode from application
Step5:
Reinstall VS Code if needed
If using a 3rd-party application is OK, check out App Cleaner.
It basically does the same thing as the other answer, but via a GUI and you don't have to manually remove all files/dirs one-by-one. Just drag VS Code from the Applications folder into App Cleaner, then it will find all the related files for you, and then you just have to click on the Remove button.
UPDATE (VS Code 1.46)
Based on a recent comment, even after using AppCleaner, re-installing VS Code seems to still "remember" your previous extensions. This is caused by a ~/.vscode/extensions folder, which for some reason, AppCleaner can't "see" and is not listed in its UI. You will have to remove this folder manually.
~$ find ~/. -maxdepth 1 -name .vscode -type d
/Users/gino/./.vscode
~$ ll /Users/gino/./.vscode/extensions
total 0
drwxr-xr-x 15 gino staff 480B Jun 30 14:14 dbaeumer.vscode-eslint-2.1.5/
... (all other extensions) ...
~$ rm -Rf /Users/gino/./.vscode
The homebrew cask code for VSCode provides a nice list of all the folders that you have to delete manually after moving the app itself into the trash:
- ~/.vscode
- ~/Library/Application Support/Code
- ~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.vscode.sfl*
- ~/Library/Caches/com.microsoft.VSCode.ShipIt
- ~/Library/Caches/com.microsoft.VSCode
- ~/Library/Preferences/ByHost/com.microsoft.VSCode.ShipIt.*.plist
- ~/Library/Preferences/com.microsoft.VSCode.helper.plist
- ~/Library/Preferences/com.microsoft.VSCode.plist
- ~/Library/Saved Application State/com.microsoft.VSCode.savedState
Here is my approach:
Open finder
Click on Home icon(which has your username as label)
Click on Library Folder. Note Library folder may be hidden, so you will need to click on Shift+CMD+. to open hidden files and folders.
Click Application Support folder
Find Code folder beneath Application Support and delete it(You delete Code Folder of course)
I lost my old mac and had to reinstall vscode on my new mac. I thought I had lost all of my extensions but when I logged on the vscode they all seem to be stored on my vscode account. I don't know if that will make a difference.
If these steps are not enough, like for me, please consider removing these file and directory:
/usr/local/Caskroom/visual-studio-code
/usr/local/Library/Taps/caskroom/homebrew-cask/Casks/visual-studio-code.rb
Run in a shell the following commands to check for others file or directories:
locate visual-studio-code
locate vscode
locate code
Bye.

How to fully remove Xcode 4

I want to remove all existing SDK versions as well as Xcode 4.
Xcode 4 Guide says to do this:
sudo /Xcode4/Library/uninstall-devtools --mode=all
But I don't have Xcode4 at this location and the only place I see it is under /Developer/Applications
I've already run the uninstall-devtools that was previously found in /Developer/Applications and then did a reinstall.
What else can I do to completely remove everything and start from scratch?
I use this command:
sudo /Developer/Library/uninstall-devtools --mode=all
Edit (1 year later):
If you've downloaded Xcode from the App Store, it's self-contained, as #mediaslave suggests. You can just drag it to the trash or use AppZapper (or a similar utility) to remove the developer tools.
If you're looking to update it, you can also do that straight through the App Store.
sudo /[xcode-path]/Library/uninstall-devtools --mode=all
Normally, [xcode-path] means /Developer, but if you have multiple versions, for example 3 is the first installed, 4 is second, /Developer will be xcode 3's root derectory and /Xcode4 for xcode 4.
Ensure Xcode, iOS Simulator, and the Mac App Store apps aren't running, then trying running the uninstall script at this (different!) location:
/Library/Developer/Shared/uninstall-devtools
This is where I found it.
Also delete Install Xcode.app from Applications folder, and Empty Trash.
Then run App Store again, and find/install Xcode.
su (or sudo su, whatever)
find / -name uninstall-devtools
This will reveal where the utility is...
If you have XCode 4.3.1, just Move To Trash the XCode.app file in the Applications folder.
If you have installed xcode from Mac App store, then you need to delete it from Launch pad. You can do this by locating xcode icon in launch pad, long click on the icon till it starts dancing. Then delete it and wait for a while till the xcode.app is deleted from /Application. If you manually delete xcode.app from /Application, App store will continue to think its installed and will not allow you to reinstall in future.
I tried to uninstall this by deleting it, but the AppStore still thought that it was installed. I deleted some preferences files in my /private directory, which made the AppStore "forget" that I had installed Xcode. I used the following command:
sudo find / -iname '*xcode*' 2> /dev/null | egrep '^/private.*' | xargs -I file sudo rm -rfv file
Which deleted the following files from my computer:
/private/var/db/receipts/com.apple.pkg.XcodeMAS_iOSSDK_6_1.bom
/private/var/db/receipts/com.apple.pkg.XcodeMAS_iOSSDK_6_1.plist
/private/var/folders/7d/n34963zx62s7znxyzn3dn6bh0000gq/C/com.apple.Xcode.503/CachedSpecifications-Xcode
/private/var/folders/7d/n34963zx62s7znxyzn3dn6bh0000gq/C/com.apple.Xcode.503/CachedSpecifications-xcodebuild
/private/var/folders/7d/n34963zx62s7znxyzn3dn6bh0000gq/C/com.apple.Xcode.503
I do not know what these files are used for, but it made the AppStore forget that it was installed, which is what I needed to happen. In my case, the AppStore was not allowing me to update to the new version of Xcode.

Resources