Standard C function remove() will delete a file. If the folder contains other folders than its a little more complicated because the code will have to be recursive (function calling itself) to process all the sub-folders.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
All you posted is a bunch of nonsense. See post #6 in this thread for example of FindFirstFile() etc. The only other thing you need is the function remove (click the link here) to delete the file. But then we have already told you all that.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343