Remove entity names with forbidden characters

I have a geometry imported from CAD that has some long, ugly entity names–the names have some forbidden characters in them like |, @ and #. I am wondering about how to get rid of these names completely.

Sometimes CAD geometry has names that cannot be used in Trelis commands or are not easily recognized. For example, Solid1@@@@@@@@@@@@

Trelis can remove the names with the remove name command. It can be used on body, volume, surface, curve, and vertex.

body all remove name all
volume all remove name all
surface all remove name all
curve all remove name all
vertex all remove name all

You may need to start with body and work down.