Host

remove()

host.remove() → Promise<{ ok: true }>

Deletes the host: its script, its hostname, its DNS record and its files all go with it.

DELETEthe address is freedno undo
Using Python?

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

await host.remove();
host.remove()

What goes

  • What was served, and the deploy history.
  • The hostname and its DNS record.
  • The files and the space they held.
  • Any customer domain attached — the names stop being served.
The slug is released

Anyone can take it afterwards. If the address matters, keep the host: an empty one serves nothing and holds the name.

Detach domains deliberately

Removing the host releases them, but detaching first is clearer — and it lets a name be moved to another host without an interruption.

Nothing is left behind

Re-reading afterwards shows no record of it at the provider, no custom domain and no script. A removal that left something orphaned would eventually collide with a later creation.

Taking something offline without deleting

There is no pause. Deploying a single page that says so keeps the host, the address and the certificate.