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