Incase of windows, after executing npm uninstall -g yarn
, still if yarn did not uninstalled, then go to "C:\Users\username\AppData\Local" and remove the yarn folder. Close the cmd and reopen the cmd and execute yarn
. it will give you message 'yarn' is not recognized as an internal or external command,
operable program or batch file.