Delete point2 function :- this function delete elements of the list