Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > emptying trash in osx

emptying trash in osx
Thread Tools
Mac Enthusiast
Join Date: Dec 1999
Location: UK
Status: Offline
Reply With Quote
Jun 21, 2006, 07:13 AM
 
hello

I am unable to empty the trash in osx due to a lot of files being locked

I am unable to go through every single one of them

but I remember in OS9 being able to hold down a button to empty the trash (even if the files are locked)

is the same true of OSX?

rich
PowerMac G5 Dual 1.8GZ, 2GB RAM, 150 & 300 GB Internal Hard Drives, AGP Geoforce 5200 64MB Graphics Card, Superdrive.
     
Senior User
Join Date: Jul 2002
Location: Florida
Status: Offline
Reply With Quote
Jun 21, 2006, 07:25 AM
 
Before you get pounced on from some members, always do a search
http://forums.macnn.com/search.php?searchid=982744

I've had the same problem in the past. ? can't recall what I did to delete trash.
     
Senior User
Join Date: Aug 2002
Location: London, UK
Status: Offline
Reply With Quote
Jun 21, 2006, 07:25 AM
 
iMac, Intel Core-Duo 2GHz, 2GB, 250GB, OS X 10.4
PowerBook 12", 867MHz, 640MB, 60GB, OS X 10.4
iMac G3, 333MHz, 288MB, 6GB, OS X 10.3
iPods: 3G iPod, 1G mini, 1G shuffle, 2G nano
     
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Jun 21, 2006, 09:52 AM
 
Originally Posted by Gator Lager
Before you get pounced on from some members, always do a search
http://forums.macnn.com/search.php?searchid=982744

I've had the same problem in the past. ? can't recall what I did to delete trash.
You can't link to search results, they expire quickly and become dead links.

tooki
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Jun 21, 2006, 10:46 AM
 
Try holding down the Option key while emptying the trash.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Junior Member
Join Date: Jun 2006
Status: Offline
Reply With Quote
Jun 22, 2006, 10:29 AM
 
Select all the locked files in your trash then go in -file -get info. Then you should be able to unlock.
     
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Jun 23, 2006, 12:37 AM
 
Originally Posted by tboparis
Select all the locked files in your trash then go in -file -get info. Then you should be able to unlock.
Click and hold on the trash icon in the dock.
Select Empty Trash from the popup menu.

poof.
-HI-
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Jun 23, 2006, 02:58 AM
 
Originally Posted by Hal Itosis
Click and hold on the trash icon in the dock.
Select Empty Trash from the popup menu.

poof.
Uh, the OP was asking about how to deal with files that won't empty via the "Empty Trash" command because they are locked. He wasn't asking where the "Empty Trash" command is in the interface.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Jun 24, 2006, 08:57 AM
 
Originally Posted by CharlesS
Uh, the OP was asking about how to deal with files that won't empty via the "Empty Trash" command because they are locked. He wasn't asking where the "Empty Trash" command is in the interface.
Yes sir... thank you, I knew that.
So, I guess you didn't know this:

$ mkdir ~/.Trash/testdir
$ touch ~/.Trash/testdir/testfil
$ chflags 017 ~/.Trash/testdir/testfil
$ chflags 017 ~/.Trash/testdir
$ ls -lAnoR ~/.Trash
total 0
drwxr-xr-x 3 501 501 uappnd,uchg,nodump,opaque 102 Jun 24 10:47 testdir

/Users/halito/.Trash/testdir:
total 0
-rw-r--r-- 1 501 501 uappnd,uchg,nodump,opaque 0 Jun 24 10:47 testfil


Now open the trash, and verify a locked folder containing a locked file reside within.

Then, execute the action I recommended via the dock's contextual menu. It works
on locked items, regardless of Finder's preferences (w.r.t. warning when emptying).

$ ls -lAnoR ~/.Trash

(nothing left)
-HI-
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Jun 24, 2006, 10:14 AM
 
Originally Posted by Hal Itosis
Yes sir... thank you, I knew that.
So, I guess you didn't know this:

$ mkdir ~/.Trash/testdir
$ touch ~/.Trash/testdir/testfil
$ chflags 017 ~/.Trash/testdir/testfil
$ chflags 017 ~/.Trash/testdir
$ ls -lAnoR ~/.Trash
total 0
drwxr-xr-x 3 501 501 uappnd,uchg,nodump,opaque 102 Jun 24 10:47 testdir

/Users/halito/.Trash/testdir:
total 0
-rw-r--r-- 1 501 501 uappnd,uchg,nodump,opaque 0 Jun 24 10:47 testfil


Now open the trash, and verify a locked folder containing a locked file reside within.

Then, execute the action I recommended via the dock's contextual menu. It works
on locked items, regardless of Finder's preferences (w.r.t. warning when emptying).

$ ls -lAnoR ~/.Trash

(nothing left)
You're a bit of a drama queen, aren't you? All that text just to say that emptying it via the contextual menu behaves differently than emptying it via the Finder menu. I guess we're all supposed to be impressed because you used the Terminal?

Anyway, I just tried it, and strangely enough, emptying via the context menu seems to do the equivalent of holding down the Option key while choosing "Empty Trash" from the Finder menu (which I already suggested). Why the interface should behave so inconsistently that the same exact command does two completely different things depending on whether you selected it from a drop-down menu or a context menu is beyond me. I would actually consider this a bug, and wouldn't be surprised if this got changed in some future release.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Jun 24, 2006, 01:14 PM
 
Originally Posted by CharlesS
I would actually consider this a bug, and wouldn't be surprised if this got changed in some future release.
Speaking of "bug," I hope you'll be feeling better in the future.

(Terminal code just made placing a locked file and folder into
the trash a bit easier, as well as setting flags higher than uchg).

--

A few tests showed - -other than uchg -- only the uappnd flag
adds additional 'locked-type' status. (Thus, chflags 06 was all I
really needed to use). If any criticism "deserved" to be volleyed
then, perhaps pointing out the fact that nodump and opaque do
not prevent trashing an item would have been more meritorious).
(Last edited by Hal Itosis; Jun 24, 2006 at 02:21 PM. )
-HI-
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:20 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2