pub async fn delete_zone(
client: &Arc<Client>,
token: Option<&str>,
zone_name: &str,
server: &str,
freeze_before_delete: bool,
) -> Result<()>Expand description
Delete a zone via HTTP API.
§Arguments
client- HTTP clienttoken- Authentication tokenzone_name- Name of the zone to deleteserver- API server addressfreeze_before_delete- Whether to freeze the zone before deletion (true for primary zones, false for secondary zones)
§Errors
Returns an error if the HTTP request fails or the zone cannot be deleted.