3 Ways to Uninstall Cygwin on Windows

Get rid of the process in no time with our expert solutions

by Kazim Ali Alvi
Kazim Ali Alvi
Kazim Ali Alvi
Kazim has always been fond of technology, be it scrolling through the settings on his iPhone, Android device, or Windows. And at times, unscrewing the device to take... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • Cygwin is a great tool for users trying to compile Linux-based applications on Windows.
  • Many users face issues uninstalling Cygwin in Windows, given it's not listed in the Control Panel or Settings.
  • There are a few ways you can uninstall Cygwin, using an elevated Command Prompt or from File Explorer, amongst others.
how to uninstall Cygwin in Windows
To fix various PC problems, we recommend Restoro PC Repair Tool: This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:
  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

Cygwin is a popular software amongst developers due to its ability to allow the compiling of Linux-based applications on Windows. And given its advanced operation, users can’t uninstall Cygwin in Windows like the other apps.

There is no option in Settings to uninstall the program, and users can’t find Cygwin in Control Panel. So, can you remove Cywin from Windows? The answer is yes, but it’s a little more complicated than one would imagine. Let’s find out!

Is Cygwin safe to install?

Yes, Cygwin is safe to install! It’s the go-to software for many developers due to the availability of various open-source tools. It serves as a viable solution for those looking to run Linux apps on Windows.

So, if you haven’t yet made up your mind to uninstall Cygwin in Windows, here are a few benefits of it:

  • Easy to use: Enhanced accessibility and ease of use are two of the primary benefits of Cygwin, making it one of the best terminal emulators to install.
  • Doesn’t burden the disk: Cygwin is lightweight and doesn’t consume a lot of space. It’s an executable file that downloads the required resources to run.
  • Quicker results: When it comes to results, Cygwin is definitely amongst the top options, given its superior performance and ability to deliver quickly and correctly.

How do I completely remove Cygwin?

Tip icon Tip
Since the conventional ways don’t work with Cygwin, we will be using some advanced methods. So follow the steps as it is. And before you start, make sure to create a restore point to revert Windows to a stable state in case things go wrong.

1. Using the Command Prompt

  1. Press Windows + R to open Run, type services.msc in the text field, and click OK.services.msc
  2. Locate and double-click the CYGWIN sshd service.
  3. Select Disable from the Startup type dropdown menu, click on Stop, and then OK to save the changes.services
  4. Similarly, stop the following services as well, if any are found:
    • Cygwin cron
    • Cygwin cygserver
    • Cygwin inetd
    • Cygwin apache
    • Cygwin postgresql

1.2 Uninstalling Cygwin

  1. Press Windows + R to open Run, type cmd, and hit Ctrl + Shift + Enter.cmd to uninstall cygwin windows
  2. Click Yes in the UAC prompt.
  3. Paste the following command and hit Enter to take folder ownership:takeown /r /d y /f cygwincommand to uninstall cygwin windows
  4. Now, run this command for advanced permissions:icacls cygwin /t /grant Everyone:F
  5. Finally, execute the following command to delete the executable and its files:rmdir /s /q cygwin

1.3 Clearing the Registry entries and leftover files

  1. Press Windows + R to open Run, type regedit, and hit Enter to open Registry Editor.registry
  2. Click Yes in the prompt.
  3. Locate the Cygwin key under any of the two, HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER.
  4. If any are found, right-click on them and select Delete.delete key to uninstall cygwin windows
  5. Click Yes in the confirmation prompt.confirm
  6. Also, delete any cache, Start Menu icons, or desktop shortcuts for Cygwin.

That’s it! Though slightly time-consuming, this is the simplest way to uninstall Cygwin with CMD in Windows 7, as well as the other iterations. After uninstalling all Cygwin packages and the remnant files, you will also free up significant disk space.

2. By modifying the permissions

  1. Press Windows + E to open File Explorer, go to the C: drive, right-click on the Cygwin folder, and select Properties.properties
  2. Go to the Security tab, and click on Advanced.advanced
  3. Now, click on Change.change owner to uninstall cygwin windows
  4. Enter the current username in the text field, click on Check Names, and then on OK.username
  5. Tick the checkboxes for Replace owner on subcontainers and objects and Replace all child object permission entries with inheritable permission entries from this object, then click OK.change owner to uninstall cygwin windows
  6. Click on OK to save the changes.
  7. Again, head to the Security tab, and click Edit.edit
  8. Click on Add.add
  9. Enter the username you used earlier, then click on Check Names, and OK.check names
  10. Select the user, then tick the checkbox for Full control, and click OK to save the changes.full control to uninstall cygwin windows
  11. Once done, all that’s left is to select the folder and hit Delete to clear the Cygwin files.

Expert tip:


Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

Another way to uninstall Cygwin in Windows is via File Explorer after taking the folder ownership. This is very similar to the Command Prompt method, the difference being that all operations are performed manually. And do not forget to clear the Registry entries and any cache, as detailed earlier.

3. With a third-party uninstaller

If you find the two solutions to be rather complicated, a quick way to uninstall Cygwin in Windows 11 is to use dedicated uninstaller software. These can identify any processes and apps on the computer and quickly remove them.

Besides removing the program, an uninstaller will also identify any Registry entries and look up the app cache, ensuring that it’s all deleted alongside.

Before you leave, do check our comparison of Linux and Windows, to get a better understanding of the two.

For any queries or to share which method worked best for you, drop a comment below.

Still having issues? Fix them with this tool:


If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

This article covers:Topics: