General Question

PandorasBlocks's avatar

Mac help: how do I empty the trash?

Asked by PandorasBlocks (112points) April 30th, 2008

In OSX 10.5 (Leopard) the trash won’t let me delete locked items, nor allow me to unlock them. Odd. I’ve logged into the root account and now have permission to do so, but can’t find the trash associated with the user account in question. Is it hidden or is there something I don’t know?

Observing members: 0 Composing members: 0

9 Answers

wildflower's avatar

What files are you trying to delete? If they’re locked and owned by root, maybe you shouldn’t be deleting them….

paulc's avatar

In any account you can do:

sudo rm -rf ~/.Trash/*
Then enter your root password when prompted. Always be very careful with your typing when using rm.

All user home directories contain the .Trash directory.

PandorasBlocks's avatar

@wildflower: It’s nothing that will damage the system, I’ve made sure of that. A folder of old photos that are stored elsewhere, a program I don’t want, and some random files weeded out during a cleanup. I think this should be simple, I just don’t want to push the wrong button and delete half the OS!

@paulc: forgive the noob Q – would I enter that in the terminal window?

paulc's avatar

@PandorasBlocks, yes and it can also be used to target a specific user and not just the current one, eg:
sudo rm -rf /Users/usernamehere/.Trash/*

wildflower's avatar

OK, just making sure…....but what paulc said should do the trick.

PandorasBlocks's avatar

First attempt complete – now to log back in and see if it worked…

PandorasBlocks's avatar

Trash is empty! Thanks for the help :)

PupnTaco's avatar

Holding down Option while emptying the Trash can force it to delete locked items.

Hollister0221's avatar

try using hazel. Its deletes it for you

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther