Removing Cygwin on Windows

Since Cygwin doesn’t come with an uninstaller, we need to use commands to remove it.

  1. Stop and uninstall all programs dependent on Cygwin
  2. Run the following commands on cmd
    takeown /r /d y /f C:\cygwin64
    icacls C:\cygwin64 /t /grant Everyone:F
  3. Run the following commands on powershell
    Remove-Item "C:\cygwin64" -Recurse -Force