As you point out, you can use diropen, dirread, dirclose to access the contents of the directory, a function of your own (or convert wildcards to a regular expression, and use the regular expression library) to match and unlink for deletion.
There is no standard way to make this easier. Most likely there will be libraries, but they will not be more effective than what you do. Typically, the file search function will call back where you provide the relevant and valid part of the code. All you want to save is a loop.
Epsilon prime
source share