How to remove a file with a particular pattern

Hi

I have a list of files in a folder.I have a search pattern in the file name and i want to remove the file with that pattern.How can that be made

List of files

xxxxx.ID1.yyyyy.zzzzz
yyyy.ID2.bbbbb.kkkkk
xxxxx.ID1.yyyyy.zzzzz
yyyy.ID4.bbbbb.kkkkk
xxxxx.ID1.yyyyy.zzzzz
yyyy.ID6.bbbbb.kkkkk

i took the pattern "ID" from the filename into a variable and now i want to remove the files containing that pattern(ID).

Thanks ,

sorry in the below listed fiels teh pattern ID is not present please replace that with ID1.
It was just for an example ...to make you all clear.

find . -name "*ID1*" -exec rm {} \;