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



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: