Steps for removal
- open powershell with administrator privilege.
- run
takeown /f PATH_TO_CYGWIN /r /d y
, for me, PATH_TO_CYGWIN = C:\ENVs\MinGW64. - run
icacls PATH_TO_CYGWIN /t /grant everyone:F
- run
del PATH_TO_CYGWIN
. - check if the files are deleted and delete the residual files.