UDF for DPM

i want to model a process, something like evaporation of droplets. It works. But the droplets, which have a very small mass, are tracked every time. It took longer time. So i think, can i just erase these droplets with a UDF? Which macro is for that?