dof is a command line application that Deletes Old Files.
To use dof you must pass it a folder and a time duration.
dof 10m Downloads
The above example will delete any files that are older than 10 seconds in the "Downloads" folder, including the "Downloads" folder if it's modification time is also older than 10 seconds ago and there are no other files in the directory.
dof has a couple of flags they are listed below:
-quiet/--quiet Don't print summary when the program finishes
-version/--version Print version information
-help/--help Print help information