'Completely remove Stack from Windows 10

I am running Windows 10, VSCode, and have the Haskell Extension Pack installed.

I also have Stack installed, and would like to temporarily uninstall it to make sure I can document and explain use of Stack with Haskell in VSCode on Windows 10.

stack's command help states that the stack uninstall command is deprecated.

Q1: Do I even need to do this? Is stack automatically installed with the VSCode Haskell Extension Pack? My investigation does not indicate this.

Q2. To uninstall stack (JUST TEMPORARILY! I LIKE IT!) how is this done? Is there a new command? Do I need to use some other install manager? Do I simply delete an executable and helper files?



Solution 1:[1]

To remove stack you will need to manually delete the following:

  1. C:\sr
  2. %AppData%\Roaming\stack

Just running uninstall won't remove those folders from your system.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Răzvan Flavius Panda