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.
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.