How to delete files having too long path in Windows

Sometimes we face problem while try to delete directories or files having too long path in Windows Operating System.

So in this tutorial I will tell you few simple steps by which you can delete directories or files having too long path in Windows Operating System.You do not need to use any special tool for deleting the file or folder.

Please follow these simple steps

  1. Create an empty folder called “test” or any name as you wish on C or D or any other drive.
  2. Use following DOS command to delete the too long name directories in cmd prompt
    • robocopy /MIR c:\test D:\Folder\FolderToDelete > NUL
  3. The directory FolderToDelete will be emptied and you can delete it then
  4. You can delete test directory any time

D:\Folder\FolderToDelete is the directory you want to delete.

Thanks for reading.

Soumitra Roy Sarkar

I am a professional Web developer, Enterprise Application developer, Software Engineer and Blogger. Connect me on JEE Tutorials Twitter Facebook  Google Plus Linkedin Or Email Me

One Reply to “How to delete files having too long path in Windows”

  1. Hi, if you are looking to Copy, Delete long path Files, here is one solution for you, use “Long Path Tool” and it works great!

    -Vivian Roberta

Leave a Reply

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