Add a deleteAll function to List