in reply to removing a needle from a haystack

Unless I'm missing something your getting at, all you need to do would be:
unlink </path/${id}\_\.*>;