Particles slide on the bottom of bounding box

If you emit some particles with gravity and make them land on a horizontal boundary they will slide along the floor. I need them to stop when they hit the ground. ideas?

In your update() you have to check if they are at y height (whatever that is for you) and if they are, remove them

Thanks! your tip brought be to a great solution. I still wanted the particles to bounce, so instead of destroying them I just reduced their horizontal velocity each time they touched the ground:

      campfire_emitter.forEachAlive((particle, emitter) => {
      const bottom = emitter.bounds.y + emitter.bounds.height;
      if(particle.y == bottom) {
          particle.velocityX =  particle.velocityX * 0.2;
      }
  }, this);