Made the erase list method generic so it can be reused in all 4
datalists.