Remove all files with specific file names in directory

If I have 5 files in a directory, what is the best way to remove specific files in it?

For example,

snps.ivg
probes.ivg[
probes.txt
snps_probes.txt
all.txt

Desired output

probes.ivg
probes.txt
all.txt

Basically, removing those files with "snp" in the filename regardless of extension. Thank you :).

rm *snp*

?

1 Like

That works great. Thank you :).