fix error when deleting dns if does not exist