Skip to content

aos trash

The Trash / Recycle Bin: how much it holds, and emptying it

2 commands. Run aos trash --help for the same list from the binary, or see every group.

The Trash (macOS), the Recycle Bin on every drive (Windows) and the freedesktop home trash (Linux). size counts the items and bytes in it. empty deletes them permanently. At a terminal it asks y/N first; anywhere else (an agent, MCP, a pipe) it refuses unless given --yes, so an agent has to get the person’s agreement before it passes the flag. On macOS, reading the Trash needs Full Disk Access for the terminal, and emptying goes through Finder.

Permanently delete everything in the Trash (asks first unless –yes)

Under WSL / SSH: runs inside WSL (where aos was started). How the host works

Terminal window
aos trash empty [--yes]
flag values meaning
--yes Optional
Terminal window
aos trash empty # asks y/N at a terminal
aos trash empty --yes # no question; required when not at a terminal

Print how many items the Trash holds and how much space they take

Under WSL / SSH: runs inside WSL (where aos was started). How the host works

Terminal window
aos trash size [--json]
flag values meaning
--json Optional
Terminal window
aos trash size
aos trash size --json