gio-trash
Move files to the trash bin. tldr-pages
On Linux
Linux
Move files to the trash bin. Used by GNOME to handle trash.
Move specific files to the trash bin
gio trash path/to/file_or_directory1 path/to/file_or_directory2 ...IdentifyList trash bin items
gio trash --listIdentifyEmpty the trash
gio trash --emptyIdentifyRestore a specific item from trash using its ID
gio trash trash://item_idIdentify