The might be some modules that already do what you want, e.g App::PAUSE::cleanup or WWW::PAUSE::CleanUpHomeDir.
In reply to Re: A userscript/userjs to cleanup older releases on PAUSE
by snoopy
in thread A userscript/userjs to cleanup older releases on PAUSE
by sedusedan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |