Maintenance scripts often remove generated files, but the planned command should be visible before it runs.

Program

Play the script to choose a retention window and see the cleanup command it would run.

cleanup_plan.sh
#!/usr/bin/env bash

keep_days=
cache_dir="build-cache"
command="find $cache_dir -mtime +$keep_days -delete"
echo "$command"
#!/usr/bin/env bash

keep_days=
cache_dir="build-cache"
command="find $cache_dir -mtime +$keep_days -delete"
echo "$command"
retention A retention window says how long generated files should be kept.
cleanup plan Printing the command first makes destructive maintenance easier to review.
side-effect boundary This lesson builds command text without deleting anything.