CLI tool to remove macOS screenshots and screen recordings.
cargo install ssrm# Remove screenshots from Desktop (default)
ssrm
# Remove from specific directory
ssrm ~/Downloads
# Include screen recordings
ssrm -v
# Preview without deleting (dry run)
ssrm -n
# Move to trash instead of permanent delete
ssrm -t
# Recursive search
ssrm -r
# Filter by date
ssrm --before 2024-06-01 --after 2024-01-01
# Skip confirmation
ssrm -y| Flag | Description |
|---|---|
-n, --dry-run |
Preview files without removing |
-t, --trash |
Move to trash instead of delete |
-v, --videos |
Include screen recordings |
-r, --recursive |
Search subdirectories |
-y, --yes |
Skip confirmation prompt |
-q, --quiet |
Suppress output |
--verbose |
Show detailed output |
--before DATE |
Only files before date (YYYY-MM-DD) |
--after DATE |
Only files after date (YYYY-MM-DD) |
Create ~/.config/ssrm.toml:
use_trash = true
include_videos = false
recursive = false
default_dir = "~/Desktop"MIT