When deleting zones unsecure them only if dnssec is enabled.
Fixed few code syntax issues.