delete-network
Delete a Rumi network and its per-role firewalls — the granular inverse of create-network.
Syntax
rumi cloud hetzner delete-network \
--api-key <token> \
--network <network> \
[options]Options
--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
rumi cloud hetzner delete-network --api-key $HCLOUD_TOKEN --network my-cloudNotes
Refuses if instances are still attached.
delete-networkremoves 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 but never launched onto.Firewall and network deletes are retried for up to 3 minutes while Hetzner still reports them in use (common right after terminate-instance). If a firewall or the network still cannot be deleted, the command fails and names what was left; run it again.
To tear down a whole provisioned environment (instances and network together), use deprovision instead — that is the sledgehammer;
delete-networkis the scalpel.
See Also
Last updated

