How to delete encrypted files in trash

I have a few empty folders in my trash. They may be encrypted although there are no files within them.

I cannot get rid of them. Any ideas?

iMac, Mac OS X (10.3.x)

Posted on Mar 2, 2015 2:47 PM

Reply
7 replies

Mar 6, 2015 1:00 PM in response to Barney61

Usual cause is that something running on your Mac is holding those files open, just as the message indicates.


For most applications that might do this, close all running applications, remove all startup items and log out and back into your Mac, or reboot it.


If that's what you've already done, and if that fails, then you can review the other startup items through various means, including with a tool such as Etrecheck. Alternatively, if you're comfortable with the command line, launch Terminal.app from Applications > Utilities, and issue the command


sudo lsof | grep -i "your-problem-filename-here"


for example:


sudo lsof | grep -i "Arial Italic.ttf"


will list the names of the processes and the process IDs with the specified (quoted, as it contains spaces) file open. This is unfortunately a little bit more arcane, and — once you have some information on the process — you might then need to launch Applications > Utilities > Activity Monitor.app to locate the process with that process ID (PID), or some other similar tool.


There are other spots where applications can be started, and sometimes adware and malware can unfortunately be a problem for folks, and some of that dreck goes to some effort to try to hide itself. So if this isn't an innocent problem, then sometimes the culprit can be a little more difficult to locate. But the above is the usual and easy stuff...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to delete encrypted files in trash

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.