systemd-tmpfiles: test cleanup rules
For temporary directories, tmpfiles is often better than a custom cron rm.
sudo systemd-tmpfiles --cat-config
sudo systemd-tmpfiles --clean --prefix=/var/cache/myapp
Verify the result
Test the rule on a narrow prefix first.