This setup introduces an age attribut and deletes particles if a certain age is reached. There are two versions. First one is for SPH and just uses the delete node. The second one works for Granular Sims, here a workaround is needed to keep the constraints intact.
Download Scenefile (Granular)
Download Scenefile (SPH)