hetzner-nuke

February 19, 2025 ยท View on GitHub

license release Go Report Card GitHub Downloads (all assets, all releases) GitHub Downloads (all assets, latest release)

Overview

Remove all resources from an Hetzner account.

Example

Example config

config.yaml:

accounts:
  000000: {}

Replace "000000" with your project id. To get your project id run hetzner-nuke project-info --hcloud-token <your-token>

Build locally

go install .
# Make sure the go path is inside the PATH
# export PATH=$(go env GOPATH)/bin:$PATH
hetzner-nuke run --hcloud-token <your-token> -c config.yaml

Run it with podman or docker

# Add hcloud token
export HCLOUD_TOKEN=<your-token>
# docker run -ti -v $(pwd)/config.yaml:/config.yaml -e HCLOUD_TOKEN ghcr.io/cgroschupp/hetzner-nuke:v0.1.0 run
podman run -ti -v $(pwd)/config.yaml:/config.yaml -e HCLOUD_TOKEN ghcr.io/cgroschupp/hetzner-nuke:v0.1.0 run