Forrest logo
back to the trash-empty tool

trash-cli:tldr:a33bb

trash-cli: Empty the current trashcan.
$ trash-empty
try on your machine

The command "trash-empty" is a specific command used in some operating systems to empty the trash or recycle bin.

When you delete files or folders on your computer, they are typically moved to a temporary storage location known as the trash or recycle bin. This allows users to recover mistakenly deleted files before permanently removing them from the system.

However, the trash or recycle bin can take up a significant amount of storage space over time as deleted files accumulate. Therefore, occasionally it may be necessary to permanently delete all the files in the trash to free up storage capacity.

The "trash-empty" command is designed to accomplish this task. When you execute the command, it instructs the operating system to permanently delete all the files in the trash or recycle bin, bypassing any prompts or warnings. This action cannot be undone, so it is important to make sure that you genuinely want to permanently delete all the files in the trash before using this command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the trash-empty tool