網上大多數方法在不具備用戶權限獲取的情況下都不能工作。
國外有人通過很簡單的命令行就實現了:
Here’s how to remove Cygwin once and for all.
You will need
Cygwin cmd.exe 2 minutes
Run cmd, navigate to C:\ (or other disk, if you have installed it in different path).
This command takes ownership recursive of the folder, without asking anything:
takeown /r /d y /f cygwin
This command gives Full Access to Everyone recursively in the folder:
icacls cygwin /t /grant Everyone:F
And finally, the command which deletes it all and removes Cygwin:
rmdir /s /q cygwin