Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: Put a file in the trash while the trash is emptying System 10.5
Sometimes when I am emptying the trash, I want to put another file into the trash, but OS X tells me I can't because "You cannot move any item to the Trash because it is being emptied." It happens more often than you might think, especially since I turn on "Empty Trash Securely," and often delete video files hundreds or thousands of megs in size.

However, if I move the want-to-be-deleted file into a Stack in the dock, I can then drag it from the Stack into the trash immediately, even while the trash is still emptying.
    •    
  • Currently 2.43 / 5
  You rated: 3 / 5 (7 votes cast)
 
[8,073 views]  

10.5: Put a file in the trash while the trash is emptying | 13 comments | Create New Account
Click here to return to the '10.5: Put a file in the trash while the trash is emptying' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Put a file in the trash while the trash is emptying
Authored by: geoffliang on Jan 12, '09 07:37:55AM

will this be risky?



[ Reply to This | # ]
What risk?
Authored by: SeanAhern on Jan 12, '09 07:45:15AM

Why? Afraid what you're dragging might be deleted?

Seriously, I would think the worst risk would be that item NOT being deleted. In which case, you just empty the trash again.



[ Reply to This | # ]
What risk?
Authored by: mark hunte on Jan 12, '09 08:51:54AM

I thought the same thing as geoffliang, when I first read this.

As in "The Left hand not knowing what the right hand is doing".

In this case the file system entries ( nodes , or what ever ) being incorrect?
With everything looking ok, But at some point biting me in the A...



---
mh



[ Reply to This | # ]
10.5: Put a file in the trash while the trash is emptying
Authored by: barefootguru on Jan 12, '09 10:43:36AM

Put it this way: Apple has specifically disallowed adding files to the trash while it's being emptied. What's the wisest course to follow: go with Apple's intentions or find a workaround?



[ Reply to This | # ]
10.5: Put a file in the trash while the trash is emptying
Authored by: momerath on Jan 12, '09 09:24:46AM

Videos hundreds or thousands of megabytes for secure deleting? Here's a suggestion: don't download child pornography.



[ Reply to This | # ]
10.5: Put a file in the trash while the trash is emptying
Authored by: Dr. T on Jan 12, '09 09:35:41AM

You're jumping to an unwarranted conclusion: it might have been video from the company's Christmas party.



[ Reply to This | # ]
10.5: Put a file in the trash while the trash is emptying
Authored by: gopes on Jan 12, '09 10:45:27AM

"Videos hundreds or thousands of megabytes for secure deleting? Here's a suggestion: don't download child pornography. "

What the hell? Why would you jump to child pornography?? *All* pornography takes up the same amount of space...



[ Reply to This | # ]
10.5: Put a file in the trash while the trash is emptying
Authored by: Notch Johnson on Jan 12, '09 10:46:10AM

You need to play nice now.



[ Reply to This | # ]
10.5: Put a file in the trash while the trash is emptying
Authored by: johnsawyercjs on Jan 14, '09 06:59:23AM

Momerath is being outgrabe.



[ Reply to This | # ]
10.5: Put a file in the trash while the trash is emptying
Authored by: lordmorgul on Jan 12, '09 12:50:19PM
This sounds like a bad idea to me as well as others above. While it may work, the behavior of the trash might not be exactly the same... for instance are all the inodes being released, is the disk space fully recovered, etc? I'd suggest just using the command-line rm filename instead.

[ Reply to This | # ]
10.5: Put a file in the trash while the trash is emptying
Authored by: timcrawf on Jan 12, '09 02:12:33PM

In previous systems, you received a different warning, it stated that the file would be deleted immediately. I liked this much better.
I also noticed the behavior mentioned in the tip, but considered it an accident and forgot it was a tip. However if memory serves, the file is NOT deleted, it remains in the trash after the empty is completed.
Before you mention porn again, I am a tech, and I am routinely called on to reduce the clutter on other people's computers.



[ Reply to This | # ]
10.5: Put a file in the trash while the trash is emptying
Authored by: Stormchild on Jan 12, '09 04:39:24PM

This is something Apple will probably patch, so I wouldn't expect it to keep working in future OS X updates.

You can use Terminal to delete a file whenever you want. If you really want to perform two separate steps (put it in the Trash, <i>then</i> delete it), you can:

mv [file or folder] ~/.Trash

Now it's in your Trash. I expect that any files you add to the Trash while it is being emptied will not be deleted, as it would be inefficient to keep checking its contents while doing so (more likely, it just gets a list of what's in it, and proceeds to delete everything on that list), but I haven't tested this, so don't try it with anything you're not sure you want to delete.

That said, if you're already in Terminal, and you're sure you want to delete the file(s), you don't even need to move them to the Trash first; you can simply delete them in one step:

rm [file]
-or-
rm -rf [folder]



[ Reply to This | # ]
10.5: Put a file in the trash while the trash is emptying
Authored by: jeremyp on Jan 13, '09 04:39:00PM

As the OP said he deletes stuff securely, might I suggest using the -P switch on the rm? Otherwise rm just deletes the inode and leaves the data until the blocks get reused.



[ Reply to This | # ]