I write images on Hetzner using Packer, but it becomes quite a pain to clean them up manually, luckily there's an API, so I built a quick script that does two things:
- Fetch all images in use by servers.
- Fetch all available images on Hetzner.
It then compares the 2, and offers you to delete the unused images.