Added a function to delete items off a list.