Solved

Delete folder that has at least 100,000 files.

Posted on 2007-11-14
3
260 Views
Last Modified: 2008-02-01
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.
0
Comment
Question by:casit
3 Comments
 
LVL 6

Expert Comment

by:sabioit
ID: 20285179
0
 
LVL 30

Expert Comment

by:SteveGTR
ID: 20286861
Here a delete command that will do the trick when the current directory is the directory where the files exist:

del /f /q *.*
0
 
LVL 9

Accepted Solution

by:
MSE-dwells earned 500 total points
ID: 20289041
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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to use wail2ban ?? 13 129
Forcibly removing a 2003 server from the Domain 4 51
How can I save all open docs into a given folder 12 117
powershell script 9 29
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question