A command-line utility that provides progress tracking and safety features for recursive file deletion operations.
- Real-time progress bar with completion percentage and ETA
- Dry-run mode to preview deletions without executing them
- Confirmation prompt for destructive operations
- Verbose output option for detailed logging
- Safety checks to prevent accidental deletion of root or current directory
- Graceful error handling for inaccessible files
git clone https://github.com/Cod-e-Codes/rmrf-progress.git
cd rmrf-progress
go build -o rmrf-progress main.go
rmrf-progress [options] <target-directory>
--dry-run
: Show what would be deleted without actually deleting anything--verbose
: Print each file path as it's processed--force
: Skip the confirmation prompt (use with caution)
Preview what would be deleted:
rmrf-progress --dry-run /path/to/directory
Delete with verbose output:
rmrf-progress --verbose /path/to/directory
Force deletion without confirmation:
rmrf-progress --force /path/to/directory
- Prevents deletion of root directory (
/
) and current directory (.
) - Requires explicit confirmation before proceeding with deletion
- Continues operation even when individual files cannot be accessed
- Processes files in reverse order (files before directories)
- Go 1.25.0 or later
- github.com/vbauerster/mpb/v8 - Progress bar library
This project is licensed under the MIT License.