deletor
File deletion tool with interactive TUI and CLI modes supporting filters, trash integration, and batch operations.
Deletor is a file deletion tool that operates in two modes: an interactive text-based user interface (TUI) and a scriptable command-line interface (CLI). The TUI mode provides visual directory navigation with mouse support and keyboard shortcuts for file selection, while the CLI mode enables automation through filtering options and batch operations.
The tool supports comprehensive file filtering including extensions, size ranges, modification time criteria, and path exclusions. Files can be moved to the system trash or permanently deleted, with optional confirmation prompts. Additional features include multi-file selection, empty directory pruning, operation logging, and OS cache cleaning capabilities.
Deletor targets both interactive users who need visual file management and system administrators requiring scriptable file cleanup operations. The CLI mode supports integration into automation workflows, cron jobs, and shell scripts with flags for size filtering (e.g., --min-size 10mb), time-based deletion (e.g., --older 7day), and extension matching (e.g., -e mp4,zip). A rules system allows saving filter configurations for repeated use.
Installation
# via Go
go install github.com/pashkov256/deletor@latest

Alternatives & related tools
hazelnut
Terminal-based automated file organizer that watches folders and applies rules to move, copy, rename, or delete files based on patterns
cull
Interactive TUI disk space analyzer for scanning directories, finding large files, and deleting them from the terminal.
bt
TUI file manager with tree-based navigation for manipulating files and directories in terminal
bkp
Simple command-line utility for creating numbered backups of files and directories with optional TAR archiving.
notox
CLI tool for renaming files to remove toxic or problematic characters from filenames
add a badge to your README
Maintain deletor? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/deletor?utm_source=badge)<a href="https://www.trmn.sh/tools/deletor?utm_source=badge"><img src="https://www.trmn.sh/badge/deletor.svg" alt="Featured on trmn" height="20"></a>