Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

deprovision

Tear down a deployment: delete every server, then every firewall, then the network.

Syntax

rumi cloud hetzner deprovision \
  --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

Name of the network to tear down

Required

Example

rumi cloud hetzner deprovision \
  --api-key $HCLOUD_TOKEN \
  --network my-cloud

Notes

  • Everything is matched by the rumi-network=<name> label (plus the network by name), so per-service firewalls created by launch-instance are swept too.

  • Servers are deleted first, and the command waits up to 2 minutes for them to be gone. Then the firewalls, then the network. Hetzner can report a firewall as still in use for a short while after its servers are deleted, so each firewall delete and the network delete is retried for up to 3 minutes. It is normally released within seconds.

  • If a delete fails, the teardown carries on with the rest, and the command then fails with an error naming what was left behind (for example firewall 12005392). Run deprovision again to remove it. A leftover firewall keeps its name, so provisioning a network of the same name fails until it is removed.

See Also

Last updated