Cleaning of metals and machinig