If you want to schedule the period or a specific date for scan result cleanup, you can use the following solution, here is an example:
Step 1:
Adding the following configuration within the “$JFROG_HOME/xray/var/etc/system.yaml”:
... server: graphScans: cleanup: olderThanDays: 5 graphScanCleanupSchedule: "0 0/1 * * *" ...The scan results older than 5 days will be cleaned, and the cleanup job will be executed every 60 minutes.
Step 2:
Restart Xray.
The cleanup job will be executed according to the rules you defined.