Remove Domain
Last updated Changelog
On this page
http
DELETE /crates/{handle}/domains/{hostname}
Removes a domain: it stops serving the crate at once. The crate’s files aren’t touched, and the domain can be added again later.
Response (200)
json
{ "message": "Domain removed." }
Errors
Besides the errors any endpoint can return:
| Status | Code | When |
|---|---|---|
| 400 | operation_rejected |
The server behind the API (mail, database, storage) or the registrar refused the operation. error says why. |
| 403 | scope_denied |
This API key does not have Crates write access for this crate. |
| 403 | service_inactive |
This crate is not active. |
| 404 | not_found |
Crate not found, or Domain not found. |
| 502 | upstream_unavailable |
This crate has no storage node. |