Cocould not delete folder on Win7

Source: Internet
Author: User

I had the same problem on Win 7 and this worked for me in command prompt. Solution 1:

RD/S pathname

 

Example: RD/s C: \ Users \ Username \ Downloads \ Music  This will delete all files and sub-folders in the folder, including the root folder itself. Solution 2:

Run cmd, navigate to C: \ (or other disk, if you have installed it in different path ).

takeown /r /d y /f cygwin       //This command takes ownership recursive of the folder, without asking anything

Step 2:

icacls cygwin /t /grant Everyone:F      //This command gives Full Access to Everyone recursively in the folder

Step 3:

rmdir /s /q cygwin            //And finally, the command which deletes it all and removes Cygwin

 

Reference:

Http://problemsolv.in/2012/09/how-to-remove-cygwin-permission-denied-problem/

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.