await api.hosts.remove(id);api.hosts.remove(host_id)What goes
- What was served, and every deploy in the history.
- The hostname and its DNS record.
- The files, and the space they held.
- Any customer domain attached to it.
A slug freed is a slug anyone can take
Removing a host releases its address. If the name matters, keep the host — an empty one serves nothing and holds the name.
Attached domains are released
The names stop being served. The domains themselves stay attached to the account; it is the link to this host that goes.
The space comes back
Into the account's object storage, and a place opens in the plan.
Taking something offline without deleting
There is no « pause ». Deploying something minimal — a single page saying the site has moved — keeps the host, the address and the certificate.