simple algorithm to delete stale copies in adaptive build algorithm