CLear Temp Folder for space consumption - Test Suite/Batch Execution

As we know we can clear Temp of Katalon by Files->CleanUp.
Is there a way to clear temp directory for every 10 scripts using katalon script considering 140 Test Cases.
For every 10 test cases we need to add a step which clears Temp and again next 10 scripts to be executed.Hence we can avoid failures during batch execution.
Please suggest solution.

Does any one know the answer?