Remove Old Files
Phase 1 - File age detection module
Develop a script to identify files older than a specified number of days in a given folder.
- Input folder path and age threshold
- Check file creation/modification dates
- List old files
Functional result: Script outputs correct list of files older than the specified age.
Phase 2 - File removal and reporting module
Extend the script to allow user confirmation and safe deletion of old files, with logging of removed files.
- Prompt user for each file or batch deletion
- Delete selected files safely
- Log deleted files to a report
Functional result: Script deletes chosen old files and generates a deletion report.