Automatically clean up old VMs

Amnesty1850

New Member
Oct 21, 2024
1
1
3
Hi there!

We're currently in the process of setting up a Proxmox Datacenter as a testing ground for multiple people in our organization.
As we've learned in the past, such a system will get pretty messy pretty fast, as a lot of users simply seem to forget to delete their VMs after they're done.
Now we're looking for a way to automatically delete unused VMs, for example, a way to automatically delete VMs that haven't been started in the last 30 days or that have been created over 2 months ago.
Is there a way to do something like this, maybe via the API?

Thanks for your help!
 
  • Like
Reactions: CoolJammins

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!