api.hosts

remove()

api.hosts.remove(id) → Promise<{ ok: true }>

Deletes a host: what it served, its hostname, its DNS record and its files all go.

DELETEthe address stopsno undo
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

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.