$prefix = \'something_prefix\'; unlink($prefix.\'.*\');
the code above is not working, but I see some code like this below works just fine
You can use glob for this. Something like this(didn't test it):
foreach (glob("something_prefix*.*") as $filename) { unlink($filename); }
Try this code:
$mask = 'your_prefix_*.*'; array_map('unlink', glob($mask));
p.s. glob() requires PHP 4.3.0+
glob()