Lot different ways and everybody has there own combo that works. Here are some, peppermint shrimp may or may not eat them, joe's juice, inject with plain old vinegar, dab some kalk paste slury on them, cooperband butterfly....hardly live in most tanks, and my favorite and cheapest is boil some ro/di water and use big syringe with some small semi flexible airline tubing ,so you can manuver it in the direction you want and blast it with the hot water. Boil baby boil....lol It does work though. Just do a few at a time and dont over do it with some of the remedies or you may alter your ph too much. Best thing is to get them before they get out of control. Even if you have to take the rock out to operate on it...just dont keep a piece out water too long. Works good on smaller easy to get out pieces.
I have only used the hot water version and just thought it up one day and it worked well for me. One thing though it will make everything in the area the hot water touches die. Like your precious coral next to it so dont do that if thats whats next to it and your rock will turn white there for awhile ,kills coraline in that spot.....Sounds scary buts it easy. Might have to do a few times to completely kill those bad things no matter what concoction you use