Keep the archive for 7 days

Hi everyone,
I was wondering if there was a way to set orthanc to only keep the last 7 days of archive, then simply delete everything that was archived. I saw that in the orthanc.json file there is a configurable parameter called “MaximumStorageSize”, but I would prefer to set it in days if possible.

Thanks in advance for any response

Hi Fabrizio,

No, there’s nothing builtin Orthanc to accomplish this.

Hopefully, you can get some inspiration from this python script that does some cleanup with a different retention period for each label.

HTH,

Alain.

1 Like