Interactive TUI and CLI file deletion tool with filters, trash support, and batch operations
Deletor is a file deletion tool that operates in two modes: an interactive text-based interface (TUI) and a scriptable command-line interface (CLI). The TUI mode provides visual directory navigation with mouse support, multi-file selection, and keyboard shortcuts for batch operations. Files are moved to the system trash by default rather than permanently deleted, with options for complete erasure when needed.
The CLI mode supports comprehensive filtering options including file extensions, size ranges (min/max), modification time ranges (older/newer than specified durations), and path exclusions. It can scan subdirectories, prune empty folders after deletion, and display progress bars during operations. The tool includes a rules system for saving filter configurations and logging capabilities for tracking operations.
Both modes support confirmation prompts (which can be skipped), cache cleaning functionality, and handle common file management tasks like cleaning downloads folders or removing files by age and size criteria. The dual-mode design makes it suitable for both interactive file cleanup sessions and automated scripting scenarios.
# via Go
go install github.com/pashkov256/deletor@latest
