> 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/terminate-instance.md).

# terminate-instance

Terminate (delete) a service (worker) instance in a network. Terminating a service also removes its per-service app-port firewall.

## Syntax

```bash
rumi cloud hetzner terminate-instance \
  --api-key <token> \
  --network <network> \
  --service <service> \
  [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                                     | Required |
| `--service` | `-s`  | The service instance name                                   | Required |

## Example

```bash
rumi cloud hetzner terminate-instance --api-key $HCLOUD_TOKEN --network my-cloud --service myapp
```

{% hint style="warning" %}
Terminating an instance permanently deletes it and its data. To tear down the whole environment, use [deprovision](/rumi-cli/commands/cloud/hetzner/deprovision.md).
{% endhint %}

## See Also

* [launch-instance](/rumi-cli/commands/cloud/hetzner/launch-instance.md)
* [start-instance](/rumi-cli/commands/cloud/hetzner/start-instance.md)
* [deprovision](/rumi-cli/commands/cloud/hetzner/deprovision.md)
