Particle deletion code