Cannot empty trash (OS10.4.11)

Joined
Feb 2, 2008
Messages
1
Reaction score
0
Hello all,

I've tried 'Empty Secure Trash' and dragging the file into the Terminal window, but that's as far as I feel comfortable going. The file is "Tiếng Việt.html" in a folder called "0 20-45-31". Any ideas? Thanks
 
Joined
Jul 21, 2007
Messages
1,252
Reaction score
15
Hello all,

I've tried 'Empty Secure Trash' and dragging the file into the Terminal window, but that's as far as I feel comfortable going. The file is "Tiếng Việt.html" in a folder called "0 20-45-31". Any ideas? Thanks
You can't empty the Trash or move a file to the Trash in Mac OS X

In Mac OS X, each user account has a separate, invisible Trash folder that is in the home folder. When you view contents of the Trash, you see only items you placed there and not the Trash folder of any other accounts. If other writable volumes are present, you may also have individual Trash folders on these volumes.

How to delete a file

Drag an item's icon to the Trash (in the Dock), or select the item and press Command-Delete.
Choose Empty Trash from the Finder menu.


Tip: If you're trying to delete a file that wasn't completely downloaded or copied, check out this document.- http://docs.info.apple.com/article.html?artnum=107426

Tip: In Mac OS X 10.3 Panther or later, you can securely delete items by choosing Secure Empty Trash from the Finder menu.

If you change your mind about deleting the item before you choose Empty Trash:

Click the Trash icon in the dock.
Drag the item out of the Trash.


If you can't empty the Trash or move a file to the Trash
For example, this message might appear when you try to empty the Trash: "The operation could not be completed because the item '(item name)' is locked."

First, try holding the Option key as you choose Empty Trash from the Finder's File menu.


Otherwise, you can check for these conditions:

Is the file locked?

If files are locked, unlock them before deleting or delete using the tips in the "Deleting locked files" section below. Also, see Mac OS X: Unable to Move, Unlock, Modify, or Copy an Item .



Do you have correct permissions to modify the file?

Every file and folder in Mac OS X has some permission settings to help define what you or other users can do with the file or folder, for example whether you may modify it or not. If see an alert box with a message that says you do not have "sufficient" privilege or permission, see the tips in the "Emptying the Trash" section of "Mac OS X: Troubleshooting Permissions Issues".


Does the file or volume have special characters?

Usually, Mac OS X can delete files whose names contain special characters, but sometimes you might need to follow this advice.

Note the name of the volume which the files are being deleted from. If you are not sure of the item's location, you can verify that by selecting it then choosing Show Info from the File menu. If the name of the volume contains any special ASCII characters, such as a bullet or trademark character, temporarily rename the volume so that it does not contain these characters.

Example: If you cannot delete files from a volume named "·Dox", rename the volume to "Dox". After the Trash is empty, restore the volume's original name as desired.

Examine the name of the files or folders you cannot delete. They should not contain a solidus ("slash", "/") character or any other special ASCII character such as a trademark, quotation mark, or copyright symbol. If the file does, remove the special character or slash from its name, then delete it.

Example: If you cannot delete a file named "Things/Stuff·", rename the file to just "t", then delete it.


Deleting locked files
Locked files can easily be deleted if you press Shift-Option or Option key combination while emptying the Trash (in Mac OS X 10.1 and later). For Mac OS X versions 10.0 to 10.0.4, use Show Info to deselect the item's Locked checkbox.

If you still cannot delete the item, start up your computer from the Mac OS X CD-ROM and choose Disk Utility from the Installer menu of the first screen. Use Disk Utility to verify and, if necessary, repair your disk.

Tip: When started up from CD, do not click Continue. Disk Utility is only available in the first screen. If you click Continue, restart the computer from the CD.

If a file can't be unlocked, you may not have permission to unlock it. See "Mac OS X: Troubleshooting Permissions Issues" to learn how to get write permissions.

If the issue persists, use Disk Utility's Repair Permissions feature to check your Mac OS X volume. For Mac OS X 10.1.5 only, download and use Repair Privileges Utility 1.1 instead.


Advanced tip about deleting locked files

If there are several locked files in the Trash, you can unlock them all at the same time at the command line. Follow these steps:

Open Terminal. It's located in /Applications/Utilities.

Type: chflags -R nouchg
Note: Type one space (not pictured) after nouchg in the line above, so that it ends in "nouchg ". Do not press Return yet.

Double-click the Trash icon in the Dock to reveal the contents of the Trash. If necessary, arrange the Finder window so that a portion of the Terminal window is still visible.
Press the Command-A key combination to select all files in the Trash.
Drag the files from the Trash to the Terminal window.
Note: This automatically enters the pathname for each file. This eliminates the need to individually empty multiple Trash directories, particularly when multiple disks or volumes are present.

Press Return. No special text message will be shown indicating that the command was successful.
Empty the Trash.

If the Trash does not empty or if you see a message in Terminal that says "usage: chflags [-R [-H | -L | -P]] flags file..." you most likely did not type the text in step 2 as indicated or did not leave a space. Repeat the steps if this happens.
 
Joined
Feb 6, 2008
Messages
5
Reaction score
0
Walrus666 - you are a genius, a genteleman and a friend. If I was a woman I would want to have your babies. The information you posted helped me to understand more about how things work as well as resolve my problem. I have been struggling for about 6 months to empty my trash as a result of installing Windows Media Player and then getting rid of it. There were so many locked files in my trash. Thank you.
 
Joined
Jul 21, 2007
Messages
1,252
Reaction score
15
Walrus666 - you are a genius, a genteleman and a friend. If I was a woman I would want to have your babies. The information you posted helped me to understand more about how things work as well as resolve my problem. I have been struggling for about 6 months to empty my trash as a result of installing Windows Media Player and then getting rid of it. There were so many locked files in my trash. Thank you.

Thank you sir, my pleasure. In addition to the information above here is another method to empty the trash of unwanted locked files. Post 18. https://www.mac-help.com/forums/showthread.php?t=313&page=2
I have a couple more scripts that will unlock and lock files as well. I'll throw those up in a minute or so. :)
If you only were Heather Locklear! Heather, are you out there sweetie? :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top