You can use the Shell command to do this from a Dos window. You can also use
the VBA Dir, Kill, ChDir, RmDir, and SetAttr commands.
To simply delete all files in a folder use
Kill <path>\*.*
However, this won't remove subdirectories, open files, or files set as
Hidden, System, or Read Only. To do that, you'll have to use the other
commands. To remove subdirectories, you have to run through the directory
tree recursively. I tend to find it easiest just to put Deltree (from Dos 6,
Win9x) in the path or somewhere that I know where it is at and Shell to a
command prompt calling Deltree. You would call Command.com or Cmd.exe with
the /C switch.