Automatically clean what?
Usually your best bet is to add code to the run script to remove the directories or files that you want to have cleaned up. For example, remove server/default/work and server/default/tmp.
Reply to this message by going to Community
Start a new discussion in Beginner's Corner at Community