Installing Home Assistant OS using Proxmox 8

Start here:

recorder:
  purge_keep_days: 2

Then optionally use an automation (search this forum for many examples). I use node red for it.

Take a look here:

If you want to delete old images of containers install portainer and look here: