Delete folder that has at least 100,000 files.

I need to delete a folder that has at least 100,000 files in it.  The files are small 1 or 2 KB each but I need a way to delete them.  And it would be all the files in a specified directory.
casitAsked:
Who is Participating?
 
MSE-dwellsConnect With a Mentor Commented:
Personally, I always use -

C:\> rd /s /q KillThisFolder

... or if I only want the content removed -

C:\> cd KillThisFolder
C:\KillThisFolder> rd /s /q .

0
 
sabioitCommented:
0
 
SteveGTRCommented:
Here a delete command that will do the trick when the current directory is the directory where the files exist:

del /f /q *.*
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.