Download!Download Point responsive WP Theme for FREE!

How to delete files/subfolders in a specific directory at command prompt in Windows

We are in the middle of a data migration project. After we migrate the data to the new file server, we need to go back and delete the files to free up space on the old server.

Since the old server is a NAS not a windows box I have to browse to the location and delete all files and folders under that share that was just moved.

Using the windows UI can take a long time to delete the files and can cause issues with thumbs.db

I know I could do this with powershell too, but it’s just too quick and easy from cmd

 

RMDIR "FOLDERNAME" /S /Q

Add a Comment

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