All apps/trash

trash

trash

Command-line tool that moves files and folders to the macOS Trash.

Runs as trash|macOS

Command form

ai-draft · 2 tasks · 6 fields

Move items to the Trash, list the Trash, or empty it. Empty requires the destructive flag and is off by default.

Opens the form; the finished command lands at your prompt, unrun
otty gui trash
Move to TrashExample values, fixed in this page — nothing here reaches a terminal
Basic
Items to trash*
any
Verbose output
-v
Use Finder API
-F
TasksEach one presets the form for one job
Move items to Trash
itemsverbosefinder
List Trash
list
ParametersOnly these flags are editable in the form
Items to trash
path · positional 0 · repeatable
Verbose output
boolean
-v
Use Finder API
Move items via Finder so Put Back works.
boolean
-F
List Trash contents
boolean
-l
Empty the Trash
boolean
-e
Skip confirmation
Skips the prompt for -e and -s; permanent and immediate.
boolean
-y
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed trash against its version. A form that does not match your version is not offered.