I would suggest reaching out to Mendix Support directly to see if they have an undocumented way to do this. It feels like there should be a way to do this for On Premise users if you have direct access to the hardware.
Good luck
As proposed by Ahmet and Robert I raised a Mendix Support Ticket and I got the following answer:
>>
You can configure this using com.mendix.storage.PerformDeleteFromStorage . You can find more information on this here.
It runs every ClusterManagerActionInterval.
<<
For our use case we set the parameter ClusterManagerActionInterval to 300000 ms (5 mins) by adding it to the Custom Settings in the Mendix Console.
After restarting the System Scheduled Event "ClusterManagement-CleanupOrphanedFiles" runs every 5 mins.
Hint:
by changing the ClusterManagerActionInterval also the other System Scheduled Events from the Cluster management are affected:
You cannot configure this system scheduled event (ClusterManagement-CleanupOrphanedFiles) in a supported way from Studio Pro or standard settings, such as changing the interval or the max number of files per run. This behavior is part of Mendix Runtime’s internal cluster management mechanism.
What other values were you trying to change, and why do you need to change it? Maybe we can think about an alternative approach based on that.