Requires the partner:write scope. Removes one domain from the enrolled partner team and returns its previous fields. A missing domain or another team's domain returns 404. Update clients before removal. Servers normally apply the removal within 60 seconds. If a server cannot update its hostname policy, the domain stays available there until an update succeeds. Once applied, the domain stops accepting requests, including on existing connections and resumed TLS sessions. HTTPS returns HTTP 421 with plain text; QUIC closes with application code 4. Your keys keep working on the ZeroCopy endpoints. Delete both DNS records at your provider afterwards. Adding the domain again starts a new setup and assigns a new challenge CNAME. Team closure, or ending partner access, also deletes the team's domains and certificates.
managementKeyAuthorizationBearer <zc_mgmt_>hostname*string^(?!.*\.zerocopy\.sh$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.){2,}[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$length <= 253The removed domain
application/jsonBoth dns_records have type CNAME. The sending record points to sol.zerocopy.sh or <metro>.sol.zerocopy.sh. The challenge record value is null while preparing, then contains the assigned name under acme.zerocopy.sh. See White label domains for setup.
hostname*string^(?!.*\.zerocopy\.sh$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.){2,}[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$length <= 253target*string"sol""fra""ams""lon""nyc""lax""tyo"products*array<string>status*string"pending""awaiting_dns""active""failed"acme_dns_fulldomain*|Assigned challenge target, or null while preparing
not_after*|Certificate expiry timestamp, or null before issuance
last_error*|Setup or renewal error, or null
created_at*stringRFC 3339 time
date-timeupdated_at*stringRFC 3339 time
date-timedns_records*array<never>2 <= items <= 2// src/bin/management_remove_domain.rs// Builds on the example project (/reference/json-rpc#example-project).use swqos_examples::swqos::{Result, required};#[tokio::main]async fn main() -> Result<()> { let hostname: String = required("DOMAIN_HOSTNAME")?; let mut endpoint = reqwest::Url::parse("https://console.zerocopy.sh/api/v1/domains/")?; endpoint.path_segments_mut().map_err(|_| "invalid base URL")? .pop_if_empty().push(&hostname); let request = reqwest::Client::new() .delete(endpoint) .bearer_auth(required("MANAGEMENT_API_KEY")?); let response = request.send().await?; let status = response.status(); let request_id = response.headers().get("Request-Id") .map(|value| value.to_str()).transpose()?.unwrap_or("<missing>").to_owned(); if let Some(etag) = response.headers().get("ETag") { eprintln!("ETag: {}", etag.to_str()?); } let body = response.text().await?; if !status.is_success() { return Err(format!("HTTP {status}; Request-Id: {request_id}; {body}").into()); } eprintln!("Request-Id: {request_id}"); println!("{body}"); Ok(())}{ "hostname": "send.partner.example", "target": "sol", "products": [ "send" ], "status": "active", "acme_dns_fulldomain": "partner-example.acme.zerocopy.sh", "not_after": "2027-02-10T09:00:00Z", "last_error": null, "created_at": "2026-11-12T09:00:00Z", "updated_at": "2026-11-12T09:05:00Z", "dns_records": [ { "type": "CNAME", "name": "send.partner.example", "value": "sol.zerocopy.sh" }, { "type": "CNAME", "name": "_acme-challenge.send.partner.example", "value": "partner-example.acme.zerocopy.sh" } ]}// src/bin/management_remove_domain.rs
// Builds on the example project (/reference/json-rpc#example-project).
use swqos_examples::swqos::{Result, required};
#[tokio::main]
async fn main() -> Result<()> {
let hostname: String = required("DOMAIN_HOSTNAME")?;
let mut endpoint = reqwest::Url::parse("https://console.zerocopy.sh/api/v1/domains/")?;
endpoint.path_segments_mut().map_err(|_| "invalid base URL")?
.pop_if_empty().push(&hostname);
let request = reqwest::Client::new()
.delete(endpoint)
.bearer_auth(required("MANAGEMENT_API_KEY")?);
let response = request.send().await?;
let status = response.status();
let request_id = response.headers().get("Request-Id")
.map(|value| value.to_str()).transpose()?.unwrap_or("<missing>").to_owned();
if let Some(etag) = response.headers().get("ETag") {
eprintln!("ETag: {}", etag.to_str()?);
}
let body = response.text().await?;
if !status.is_success() {
return Err(format!("HTTP {status}; Request-Id: {request_id}; {body}").into());
}
eprintln!("Request-Id: {request_id}");
println!("{body}");
Ok(())
}{
"hostname": "send.partner.example",
"target": "sol",
"products": [
"send"
],
"status": "active",
"acme_dns_fulldomain": "partner-example.acme.zerocopy.sh",
"not_after": "2027-02-10T09:00:00Z",
"last_error": null,
"created_at": "2026-11-12T09:00:00Z",
"updated_at": "2026-11-12T09:05:00Z",
"dns_records": [
{
"type": "CNAME",
"name": "send.partner.example",
"value": "sol.zerocopy.sh"
},
{
"type": "CNAME",
"name": "_acme-challenge.send.partner.example",
"value": "partner-example.acme.zerocopy.sh"
}
]
}