Deleting error method