Delete just the contents of a directory

  • Thread starter Thread starter Owkmann
  • Start date Start date
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
 
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
 
Back
Top