Add method deleteList, and correction of the delete method