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 > macOS > Can't empty Trash Bin...

Can't empty Trash Bin...
Thread Tools
nobitacu
Mac Elite
Join Date: Mar 2003
Location: United States
Status: Offline
Reply With Quote
Feb 26, 2004, 06:25 AM
 
Hello,

I expanded a file than deleted that sit file, ejected the extracted file on my desktop, than tried to empty the trash, but it won't let me. It keeps on telling me the operation cannot be completed because the item is in use. Ummm... ok... the item is not in use because I ejected the file on my desktop and it's closed! So... how can I solve this tiny problem with my stupid trash bin?

Thanks,

Ming
A Proud Mac User Since: 03/24/03
Apple Computer: MacBook 2.0GHz Intel Core 2 Duo, 3 GB Memory, 120 GB HD
     
Ω
Mac Elite
Join Date: Nov 2003
Status: Offline
Reply With Quote
Feb 26, 2004, 06:48 AM
 
If you want the easy way go to versiontracker and look for suitable programs. There are numerous versions out there.

If you want the terminal way (yes the terminal) then open terminal. Off the top of my head it is located in your application folder - do a search for it if you need to.

Then type:

sudo rm -f insert filename here

sudo give you "root" access.
rm invokes the remove function
-f tells it is a file (if it is a directory try -d)

where you need to insert the filename the best method is to type out the three parts listed above and then drag the icon to the terminal after the typing, as you need to specify the location of the file.

If you need more info type "man rm" in the terminal.

Hope this helps
     
nobitacu  (op)
Mac Elite
Join Date: Mar 2003
Location: United States
Status: Offline
Reply With Quote
Feb 26, 2004, 07:04 AM
 
Originally posted by _?_:
If you want the easy way go to versiontracker and look for suitable programs. There are numerous versions out there.

If you want the terminal way (yes the terminal) then open terminal. Off the top of my head it is located in your application folder - do a search for it if you need to.

Then type:

sudo rm -f insert filename here

sudo give you "root" access.
rm invokes the remove function
-f tells it is a file (if it is a directory try -d)

where you need to insert the filename the best method is to type out the three parts listed above and then drag the icon to the terminal after the typing, as you need to specify the location of the file.

If you need more info type "man rm" in the terminal.

Hope this helps
Thanks, the terminal way works like a charm. ^_^

Thanks again for the help.

Ming
A Proud Mac User Since: 03/24/03
Apple Computer: MacBook 2.0GHz Intel Core 2 Duo, 3 GB Memory, 120 GB HD
     
Appleman
Mac Elite
Join Date: Feb 2001
Location: France
Status: Offline
Reply With Quote
Feb 26, 2004, 07:13 AM
 
log out log in should work.
Or a Secure Empty Trash seems to work always.
     
Pierre B.
Grizzled Veteran
Join Date: Feb 2003
Status: Offline
Reply With Quote
Feb 26, 2004, 07:16 AM
 
Originally posted by _?_:

-f tells it is a file (if it is a directory try -d)
Not exactly. The -f option can be a dangerous one, depending on context. From the rm manual:


-f
Attempt to remove the files without prompting for confirma-
tion, regardless of the file's permissions. If the file does
not exist, do not display a diagnostic message or modify the
exit status to reflect an error. The -f option overrides any
previous -i options.
     
nobitacu  (op)
Mac Elite
Join Date: Mar 2003
Location: United States
Status: Offline
Reply With Quote
Feb 26, 2004, 08:06 AM
 
Hmmm... next time I'll try the safe way than of doing a log out than log back in thing...

Ming
A Proud Mac User Since: 03/24/03
Apple Computer: MacBook 2.0GHz Intel Core 2 Duo, 3 GB Memory, 120 GB HD
     
Ω
Mac Elite
Join Date: Nov 2003
Status: Offline
Reply With Quote
Feb 26, 2004, 08:34 AM
 
Oops, my bad.

Though closer examination of the rm manual can be a good thing. -i might have been more in order.

[memo to self]don't post when you have been drinking[/memo to self]

..hiccup...

I actually use my method above when I need it, but just make sure you are VERY sure about what you are doing. Now where was that disclaimer I left around here....
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 03:08 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,