Is there an API that can use wildcards to delete all files in a directory?
Thanks.
Vaguely I remember there is a "Shell" function that will delete a tree but exercise great care, they can take out more than you want. You can also roll your own using a recursive delete algorithm. When I developed one some years ago i tested it on a bare partition as one mistake in development and you can take out the contents of a whole drive with it.
SHFileOperation can delete more than one file at a time using wildcards.