delete_zone

Function delete_zone 

Source
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 client
  • token - Authentication token
  • zone_name - Name of the zone to delete
  • server - API server address
  • freeze_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.