> For the complete documentation index, see [llms.txt](https://docs.rumi.systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rumi.systems/rumi-cli/commands/cloud/hetzner/delete-network.md).

# delete-network

Delete a Rumi network and its per-role firewalls — the granular inverse of [create-network](/rumi-cli/commands/cloud/hetzner/create-network.md).

## Syntax

```bash
rumi cloud hetzner delete-network \
  --api-key <token> \
  --network <network> \
  [options]
```

## Options

| Option      | Short | Description                                                 | Default  |
| ----------- | ----- | ----------------------------------------------------------- | -------- |
| `--api-key` | `-k`  | The Hetzner Cloud project API token (or set `HCLOUD_TOKEN`) | Required |
| `--region`  | `-r`  | The Hetzner location the network is in                      | `fsn1`   |
| `--network` | `-n`  | The name of the network to delete                           | Required |

## Example

```bash
rumi cloud hetzner delete-network --api-key $HCLOUD_TOKEN --network my-cloud
```

## Notes

* **Refuses if instances are still attached.** `delete-network` removes only the network and its firewalls; if any instance still carries the network's label it fails with a message telling you to terminate the instances first. This makes it safe to run against a network you created with [create-network](/rumi-cli/commands/cloud/hetzner/create-network.md) but never launched onto.
* To tear down a whole provisioned environment (instances and network together), use [deprovision](/rumi-cli/commands/cloud/hetzner/deprovision.md) instead — that is the sledgehammer; `delete-network` is the scalpel.

## See Also

* [create-network](/rumi-cli/commands/cloud/hetzner/create-network.md)
* [list-networks](/rumi-cli/commands/cloud/hetzner/list-networks.md)
* [deprovision](/rumi-cli/commands/cloud/hetzner/deprovision.md)
