A method of erasing and apparatus for deleting for performing the method