I know it has worked for snails in my aquariums, but you will want to make sure it won't harm the piranhas also. Boil a handful of pennies to make sure they are clean, then rinse in cold water and add them to the tank. It works because copper is harmful to invertebrates but not other fish generally.