Frequently Asked Questions

« Previous
How do I configure my resolver on a Linux machine?
Next «
How to transfer web hosting for a domain

64. How do I really delete a directory and files in Windows?

  1. Start a command prompt as a local administrator.
  2. Change directory to the one above the directory you want to delete.
  3. Fix permissions.
  4. Delete files (this should not be needed...)
  5. Delete directories

    cd "c:\my stuff" attrib /s /d -s -h -r "to delete" del /f /s /q "to delete" rmdir /s /q "to delete"

  6. If this do not work also try to take ownership of the directory and full control in the ACLs and then delete again:

    takeown /f "to delete" /r /d y icacls "to delete" /grant %username%:F /T

This entry windows.rmdir was last modified 2018-06-04

This documentation is covered by GNU Free Documentation License.