# remove()

Canonical URL: https://developers.iagenify.com/sdk/ref/host/remove/
Language: en

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

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

Status: DELETE · the address is freed · no undo

```javascript
await host.remove();
```

## What goes {#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 {#domains}

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 {#clean}

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 {#offline}

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

- [domains.detach()](/sdk/ref/host/domains/detach): Releasing a name first.
- [api.hosts.remove()](/sdk/ref/hosts/remove): The same, by identifier.

```python
host.remove()
```
