mirror of
https://codeberg.org/pierreprinetti/forgejo-hetzner-runner.git
synced 2025-06-27 16:25:53 +00:00
10 lines
185 B
Bash
Executable file
10 lines
185 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
declare -r id="$1"
|
|
|
|
curl -isS \
|
|
-X DELETE \
|
|
-H "Authorization: Bearer ${HETZNER_API_TOKEN}" \
|
|
"https://api.hetzner.cloud/v1/servers/${id}"
|