Since Cygwin doesn’t come with an uninstaller, we need to use commands to remove it.
- Stop and uninstall all programs dependent on Cygwin
- Run the following commands on cmd
takeown /r /d y /f C:\cygwin64 icacls C:\cygwin64 /t /grant Everyone:F
- Run the following commands on powershell
Remove-Item "C:\cygwin64" -Recurse -Force