Command: trash
Manage the contents of the Trash.
Important Note: This command requires your terminal application (e.g., Terminal, iTerm2) to have 'Full Disk Access' permission. You can grant this in
System Preferences > Security & Privacy > Privacy > Full Disk Access
.
Usage
Usage: m trash [OPTION]
Description: Manage the trash on MacOS
Options:
--help Show this help message
--status Show the status of the trash
--clean Clean the trash
Options
--status
Displays the total size of the files in the Trash and the number of items it contains.
Example:
m trash --status
# Sample Output:
# Size: 2.5G
# Number of files: 150
--clean
Permanently deletes all items from the Trash. This is equivalent to 'Empty Trash' in Finder. This action cannot be undone.
Example:
m trash --clean