The Trash is a place for deleted files, from where they can be restored or permanently deleted. Usually, "Trash" is used for Linux and Unix systems whereas Windows uses "Recycle Bin"

learn more… | top users | synonyms

19
votes
3answers
70k views

Quickly Empty Trash in Mac OS X

Emptying the trash in OS X can be a long process, especially If you have lots of items (like me). This is after 5 minutes: Is there a way to quickly empty the trash, or make the process a whole lot ...
14
votes
1answer
12k views

Why does emptying the trash in Snow Leopard take so long?

Since installing Mac OS X 10.6, whenever I empty the trash, it takes about 50x as long as it used to under 10.5. I just emptied about 100 files (totaling 50 megs / all local files), and it was about ...
14
votes
7answers
11k views

Put files deleted over the network into a Windows trash can?

From a Windows workstation when I delete files over the network (e.g. a file share, server disk, etc) those files are never put into a trash can, either on my Windows workstation or on the server - ...
13
votes
5answers
4k views

Move file to Trash on Snow Leopard from Terminal

Snow Leopard allows users to "Put Back" files that were moved to the Trash from Finder. However, when I do mv <file> ~/.Trash from the command line I don't get the "Put Back" option. Is there a ...
9
votes
9answers
4k views

How can I speed up the deleting of very large directories on XP?

I regularly check out incredibly huge directories onto my XP machine. When it comes down to deleting and finally trashing them, it takes forever. Is there any way to speed this process up?
9
votes
1answer
1k views

How to tell where an item in the Trash came from?

The Mac OS X 10.6 Trash shows an option "Put back" for files that were trashed after installing 10.6. However, it does not show where the file will be put back to. So: using Finder, is there any way ...
7
votes
2answers
4k views

How is the “secure empty trash” option on Mac OS X any more secure than emptying it normally?

On Mac OS X there is an option for securely emptying the trash. How is this any more secure than emptying the trash the normal way? Does it overwrite the old data instead of just erasing it?
6
votes
3answers
5k views

Deleting a single file from the trash in Mac OS X Snow Leopard

In earlier versions of Mac OS X one could delete a file from the trash by opening a terminal window and typing rm ~/.Trash/file_i_want_to_delete. See this previous post. Unlike earlier versions in ...
5
votes
3answers
37k views

Linux: Command to empty recycle bin

What is the shell command to empty the garbage bin under Linux?
5
votes
3answers
2k views

Empty the contents of Trash for only a single volume

How can I empty the Trash only for an attached external drive, but not at the same time for the internal hard disk?
5
votes
1answer
2k views

Two commands to move files to trash. What's the difference?

trash-cli provide a trash command, and gvfs-bin provides a gvfs-trash command that move files / directories to the trash can. Is there an important difference between these two commands?
5
votes
4answers
2k views

Cannot delete file in OS X

I have a file in trash, and I cannot delete it. Before you ask me to STFW, no, the file is not locked :-/ The file is a symbolic link to nothing (target is deleted). Here is the output of ls -lO on ...
5
votes
4answers
12k views

How to restore all the files from trash in Mac OS X?

I can put back the items one by one, but there are too many files, how could I restore all the files in the trash?
5
votes
4answers
3k views

Mac always warns “You can't undo this action” and skips the Trash when deleting a file

I repaired the permissions on my iMac and am now getting this dialog box whenever I delete something. I checked Finder > Preferences and "Empty Trash Securely" and "Show Warning" are both unchecked. ...
4
votes
2answers
5k views

A file is still in use when trying to empty the Trash – how can I remove it?

When you try to empty the Trash in OS X, and there is a file still open in an application, you receive the dialog: The operation can't be completed because the item "…" is in use. How can I ...
4
votes
4answers
5k views

Efficiently and Safely Deleting or Un-Trashing Time Machine Backups

I have been storing my Time Machine backups on an external drive. Noticing that space was getting low, I viewed that external drive in the Finder, selected a bunch of the folders and moved them to the ...
4
votes
2answers
583 views

Safe substitute for OS X `rm`?

I am used to having rm to alias something safer. I have been using osx-trash, but once I upgrade to Ruby 1.9.2, this stops working. I know about trash-cli from Python, but I would much prefer ...
4
votes
1answer
246 views

Why is rm -rf ~/.Trash/* much faster than clicking “empty trash”?

On a Mac computer, when you write rm -rf ~/.Trash/* in the terminal, it almost instantly deletes all the files in the Trash. But when I click "empty trash", it takes forever to delete them all. ...
4
votes
1answer
61 views

Is there a way to empty trash and compress a folders on all of my Thunderbird IMAP accounts with a single click?

OK, actually that will take clicks: one click for emptying the trash, and the second click to compress the folders. I want to do this on all my IMAP accounts in Thunderbird, so I don't have to do it ...
4
votes
1answer
771 views

Confusing trashes, can't delete stuff

I'm "cleaning" my computer and USB keys and this requires a whole lot of deleting. I've gone though everything on my OS HDD, and now moving on to keys. My trash is initially EMPTY. When trying to ...
3
votes
5answers
10k views

how to delete a single item from trash forever in mac os x

There are 20 items in the trash. I want to delete a single selected item from trash. How is it possible? I asked this question because in the following circumstances I was confused. Suppose I ...
3
votes
2answers
13k views

How do I empty the trash in Ubuntu 9.10?

I have been deleting files on my machine for several months now. The deleted files are likely to be using up considerable space on my HD. I want to empty trash, but cant fond out how to do it. I ...
3
votes
3answers
4k views

Trash won't empty in Mac OS X

When I am trying to secure empty my trash, I get a dialogue box saying: The operation can’t be completed because you don’t have permission to access some of the items."
3
votes
3answers
10k views

How do I delete a file using the Terminal from my Trash in Mac OS X?

From a previous question I have applied following command to my file. sudo chflags -R nouchg TopSites.plist sudo chmod 444 TopSites.plist Now that the file is locked, I don't know how to remove it. ...
3
votes
3answers
6k views

OS X Lion: Emptying the trash takes “forever”: is using rm -r safe?

Emptying my Trash in OS X Lion (non securely) is taking about three hours (about 1.5 million files, from a Time Machine backup). I had to stop the process a few times already, because I could not move ...
3
votes
1answer
5k views

Is it possible to interrupt or cancel the trash-delete process?

I am connected to the company server, onsite not remote, which is Windows based. When, in the OS finder, I go to delete a file or directory that resides on the window-based server, the trash progress ...
3
votes
2answers
13k views

Where is the recycle bin in Finder on Mac OS X?

At the bottom of my screen there is the recycle bin. Is there someway to unpin it from there? By the way, where is the recycle bin in Finder?
3
votes
3answers
9k views

How to restore deleted from Ubuntu trash items?

How to restore deleted items from the Ubuntu trash?
3
votes
3answers
3k views

Delete the pendrive contents and also trash in Mac OS X?

I am using a MacBook Pro. I copied some data from my pen drive to my Mac and deleted the content by moving it to trash. After that when I see the info of pen drive it give more value than the ...
3
votes
5answers
718 views

How can I free files that are in use by quicklook?

I have a couple pictures I was looking through and deleting stuck in my trash (Mac OS X 10.6 latest) and finder tells me they are in use when I try to delete them. I looked around online and found ...
3
votes
1answer
109 views

When Deleting Files from External Drive I am Constantly Being Prompted for Assurance

I have the new Mac Pro with 10.9.3. The Home Folder is on a separate drive using magnetic links. Lately things have not been running normally. One of the main issues is that every time I want to ...
3
votes
2answers
87 views

Linux Ubuntu, How to clean cookies from web browsers

How do I empty the trash though the terminal, and how do I get rid of cookies that have accumulated in the web browsers under linux?
2
votes
3answers
3k views

How can I restore an item from the Trash in Mac OS X?

Windows provides restore item to the position from where it was deleted. But I couldn't find any option to restore an item from trash. Is it possible to restore an item from where it was moved to ...
2
votes
4answers
1k views

How to empty the trash?

There is a strange file in my Trash that doesn't go away when I empty the trash. The file name looks like: ␀␀␀õ␀␀.õ␀ The file is apparently in /Volumes/NO NAME/.Trashes/501/ ("NO NAME" is my boot ...
2
votes
2answers
7k views

How to show Trash on Desktop (Mac)?

Is there any way to show icon of Trash on Desktop? The Trash is displayed on Dock. I have tried to create an alias to ~/.Trash on my Desktop, but it is just an alias and does not have the same ...
2
votes
1answer
368 views

Can't secure empty trash in OS X

I'm trying to empty the trash but it shows an alert that prompts me to Stop or Continue. When I click Continue it terminates the process – but how do I format or empty the trash in OS X?
2
votes
4answers
6k views

Mac Trash won't empty, and rm ~/.Trash/* does nothing

The Trash icon on my Dock shows the Trash containing files. I tried right-clicking and Empty Trash, but it still shows files there. When I open the Trash folder in Finder, I can see several files ...
2
votes
1answer
3k views

Can't delete items from Trash

There are some locked files in my trash that I removed from an external hard drive. I have tried a few different things but I delete them. I have tried: sudo rm -rf ~/.Trash mkdir ~/.Trash killall ...
2
votes
1answer
393 views

Custom trash icons does not refresh (windows 7)

I changed Desktop Recycle Bin default icons to custom ones. One for empty and one for full. But the problem is that the icons dont switch by themselves. I have to manually refresh desktop for icons to ...
2
votes
3answers
221 views

Instead of using RM. I want to use a custom “soft delete” command

Instead of using the "RM" command for things. I would like to have a custom command that would move the file to a "trash" folder with the dir it had. for example. If a file was ...
2
votes
1answer
641 views

How to delete trash items using terminal?

I have some important and some unimportant items in trash. I need to delete the unimportant files from trash, but when I empty the trash, my important files are also deleted. How to delete trash ...
2
votes
2answers
413 views

unexpected trash contents

As I was proceeding to empty the trash on this machine (Mac OS X version 10.6.3), a listing of thousands of items began accumulating. Trash itself shows some 237 items, many of them folders labeled ...
2
votes
0answers
1k views

Deleted files still taking up space on OS X Lion

Last night I started to delete 100GB worth of VirtualBox disk images on a MBP running Lion. A dialog box opened saying that the trash was preparing to empty, but nothing happened for a good 20 ...
2
votes
0answers
299 views

Move to Local Trash when deleting IMAP messages in Thunderbird

I have tried to find a solution for this for a while now without luck. Wanted to check if there already is an add-on or easy hack before I attempt to write my own. In my opinion this must be quite a ...
1
vote
2answers
794 views

AppTrap alternative? (Deleting Applications)

I've been using AppTrap for some time now, however it's no longer being maintained. Is their something similar out there that's being actively maintained and will work with the next OS release?
1
vote
3answers
628 views

Problems with Mac's Trash

I deleted a HUGE load of backup from an external HD (about 5 million files). Since then, the folder is "stuck" in Trash, never deleted. Once I go to Terminal and do: rm -rf ~/.Trash It deletes ...
1
vote
4answers
1k views

Where do files and directories go when I run 'rm -rf folder_or_file_name' in Ubuntu 10.04?

When I delete folders or files in the Nautilus GUI, those folders/files go to Trash but where do folders/files go when I run rm -rf folder_or_file_name in terminal in Ubuntu 10.04?
1
vote
2answers
2k views

Delete from Nautilus as root - where is my trash?

I run Nautilus as root to access folders like /var/www. I now deleted a file by pressing the del key and was wondering where I can find the trash to really have it removed completely? OS: Ubuntu ...
1
vote
2answers
1k views

Trash won't empty (OSX): “The operation can't be completed because an unexpected error occurred (error code -8003)”

Like the title says -- I can't empty the trash on my OSX (10.6.4). I get "The operation can't be completed because an unexpected error occurred (error code -8003)" alert with stop & continue ...
1
vote
4answers
3k views

Can not remove all files from Trash in OS X

I am try to empty the Trash, which takes forever. Most of the files have been removed, but I am left with several that will not delete, and I now get the following message: The operation can’t be ...