Delete just the contents of a directory

O

Owkmann

How can I use the command window to delete just a directory's contents
(files and subdirectories) without deleting the directory?

rd /s removes the current directory and all subdirectories
del just removes files, not subdirectories

Thanks for any help,

Owkmann
 
M

mikeyhsd

it is saver to do it from Windows Explorer.
is here some reason why you cannot us it.
it is all too easy to screw things up using manual commands.



(e-mail address removed)



How can I use the command window to delete just a directory's contents
(files and subdirectories) without deleting the directory?

rd /s removes the current directory and all subdirectories
del just removes files, not subdirectories

Thanks for any help,

Owkmann
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top