add a small optimization for deleting all the members of a list