delete with name method modified