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

Ashwani Friday 21 June 2013 - 06:26 am | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.