Implemented function to delete at position and empty the list