• 1-888-289-2246
  • 24x7x365 Presence

Deleting unwanted folders


There are certain cases where you may not be able to delete a file or folder, for example when the file name is invalid like when it ends with a dot “.” and another example is when the user cannot open the file/folder using the normal methods in Windows Explorer.

The single line command below can solve this.

rd /s “\\?\C:\userdirectorty\unwanted\many\wiredFolder.”

Please change the directory path as per your needs, for example :

rd /s “\\?\C:\homedirectory\Username\domainname\unfolder.”

rd : RemoveDirectory
/s : switch to delete from sub-folders

]]>


Leave a Reply

Your email address will not be published. Required fields are marked *