---
title: "Delete a domain"
description: "Remove a hostname from an app."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.stackmachine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a domain

```javascript
await client.apps.domains.del("domain_id");
console.log("Domain removed");
```

```python
client.apps.domains.delete("domain_id")
print("Domain removed")
```

> Source: [stackmachine/sdks](https://github.com/stackmachine/sdks/tree/main) examples.

Source: https://docs.stackmachine.com/apps/domains/delete/index.mdx
