Cannot Delete Dmg Files From Trash

  1. Dmg Files Delete
  2. Cannot Delete Dmg Files From Trash Disposal
  3. Dmg Files Download
  4. Dmg File Pc

Feb 10, 2014  Delete DMG Files Automatically When You Eject Them Step 1: Open Automator and choose to create a new document. From the available document types. Mar 25, 2015 How to Delete Files that Are In Use in OS X By Phil South – Posted on Mar 25, 2015 Mar 26, 2015 in Mac We’ve all had it, that time when you try to empty your trash in OS X and the system tells you it can’t delete the files because they are “in use,” when as far as you are aware, they’re not.

I empty the trash bin on my Mac at the end of every day. Every once in a while, I'll get a message that reads, 'Operation can't be completed because the item [file name] is in use.' How is that possible? I know it's not in use because I'm not using it. I deleted it. I threw it in the trash! I'm the boss of this process!

There are a few reasons that your Mac might think an item is in use when you know that it isn't, including the possibility that the program it was opened with thinks you are still using it.

Apple used to have this handy tool called 'Secure Empty Trash' that coincidentally also trashed files that were still in use, but that was removed in El Capitan.

Don't worry, though. There is still an easy way to remove those mischievous files from your computer when emptying the trash bin doesn't seem to work.

How to delete an item in your Mac's Trash that claims it's still in use

  1. Double-click on your Mac's Trash bin in the app dock.
  2. Select the item you want to delete.

  3. Right-click on the item.
  4. Select Delete Immediately from the dropdown menu.
  5. Click Delete to confirm that you want to delete the item. You can't undo this action.

You can now empty the trash like a proper grown-up.

Any questions?

Are you still having trouble emptying your Mac's trash bin? Let me know in the comments and I'll help you out!

leaked

iPhone 9 and the next iPad Pro confirmed in iOS 14

Apple's iPhone 9, as well as the iPad Pro, AirTags and a new Apple TV remote, have all been spotted in iOS 14.


Cannot empty trash because item is in use | 19 comments | Create New Account
Click here to return to the 'Cannot empty trash because item is in use' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
My foolproof method has always been with rm. Open your Terminal and type: As always, be careful with rm.

My problem is that frequently the file said to be in use is NOT in use, and the related app is closed. Secure empty trash works in this case. Why does the sys think such files are still in use?

Of course, first make sure that the file is not actually in use by an application.
Perhaps force quitting the Locum process is more elegant, but my solution has always been to open a terminal window and delete the file directly (i.e. type 'rm ' in the terminal window and drag the file in question to the terminal window, then hit return. However, this may leave the Locum process hanging... I haven't checked.

For me, this problem occurs with any file I mail as an attachment with Mail.app. It's been this way since 10.6.0 and I've filed a bug with Apple (as have many according to the Apple discussion forums) but it's still an issues. Overall, just kind of annoying but I wish they'd fix it!
One more thing: if you have a LOT of items in your trash that take up a lot of disk space, it's best to use a regular 'empty trash' first and tell it to continue when you get the error about not being able to remove certain items. Then follow up with the secure-empty trash. Otherwise it can take a long time to securely erase all those files.

My solution to Mail attachments that cannot be deleted from the Trash is simply to quit and relaunch the Mail app. Takes 2-3 seconds and works every time.

Will doing this invoke the secure delete bug where the temporary file is left in place and forgotten? (thus taking up disk space forever/manually deleted)

if you know the file that can't be trashed is harmless, just

cd ~/.Trash; rm -rf *

handle with care, though.

Bad. Bad shell scriptor!
What if I made a typo in the directory name? The way you wrote the command, you run a VERY real risk of deleting everything in your home directory. Which, presumably isn't something you want to have to recover from.
Much, MUCH better would be:
$ cd ~/.Trash && rm -rf *
I know you said 'handle with care', but such a simple modification makes it MUCH safer.
Remember friends, when one command depends on the successful completion of another command && is what you want. Not ;.
What's the point of CDing in the first place? Why not:
rm -rf ~/.Trash
There's no point to changing to that directory if you only wish to perform a single action in that directory.
Even better:
rm -rf ~/.Trash; rm -rf /Volumes/*/.Trashes
A while ago I wrote a little script to tell me which process was holding onto a file and preventing me from emptying the Trash. It's not much, just 2 lines of bash, but it's been helpful.

That is quite useful, thanks.
Something interesting about that: After mailing an attachment, then trashing the document I had attached, I got the expected file in use error. So I tried the lsof | grep -i busy command you pointed out and came up with nothing. Very peculiar this mail attachment bug...

If Shift + Option + Command + Delete won't empty everything I Option click the Finder App in the Dock and choose Relaunch.

Slightly off topic, but I feel compelled to point out what I think is bad advice in general. I've been using unix since the late 70's. I'm reasonably savvy with unix, yet I almost never use rm * to delete files. The only time I ever do this is after I double and triple check that I'm in the right directory and I list the files that I'm about to nuke as an alternate check that the destruction I am about to wreak is the destruction I intend. I would never recommend the use of this command to anyone because I can never be sure that they are as careful as I am.

In the case of this example, it's like using a chainsaw to remove a wart. It's simply not necessary. All you have to do is open a terminal window and type rm followed by a space, open your trash and drag the file you want to remove to the terminal window, then hit return. It's easy. It's safe. It's effective. It's actually quicker than doing the cd to your Trash folder in the terminal.

Sorry, climbing down from my soapbox now.

I agree, the rm command should almost never get * in normal usage, it's just too risky, even when we think we know what we're doing.

I always add the -i flag ('interactive') when issuing rm -rfi so the system asks before deleting every file.

---
Madness takes its toll.
Please have exact change.
Another option would be to use the lsof command and try to close whatever is using the file. Something like lsof | grep Trash.
Delete

Dmg Files Delete

I found that the main reason in my use was the calculation of thumbnails (e.g. Flip4Mac calculating a thumbnail for a large WMV file in the trash).
Not looking at the trash but using the 'Empty Trash' context menu on the Dock prevents most occurrences for me.

Cannot Delete Dmg Files From Trash Disposal

hello,
very annoying this, BUT i found a good working solution here:
http://thexlab.com/faqs/trash.html
Force the Trash to empty using the Option key
This technique uses a hidden feature of Mac OS X to force the Trash to empty. Perform the following steps in the order specified:
Press and hold the mouse button on the Trash icon in the Dock. The context menu for Trash will display.
Press and hold the Option key or the Shift-Option keyboard combination,
Select Empty Trash from the context menu for Trash.
Release the keys pressed and held in step 2.
it actually works (mac osx lion)
good luck

Dmg Files Download

Sorry to bump this old thread, but I was trying to take the advice posted here, and entered cd
~/.Trash
rm -r *
as two separate lines....now everything in my documents, downloads, desktop, and some other things are gone. Is there any way to undo this!? I'm freaking out, I have some important stuff that is not backed up (stupid, I know).

Dmg File Pc

There is another minor caveat with the rm-based alternative. If you rm a file while it is in actual use, you will most likely not get the disk space back until that file is released by whatever is holding an open file descriptor to it. The file will disappear from the Trash and directory listings, so if you just like to see an empty Trash icon, then ok. If you actually want the disk space marked as free for other uses, this is usually not enough.
For large files, more comprehensive (though time consuming) solution is to use lsof | grep <filename> to check what process is holding the file open, and then killing that process. This way you can use empty trash from the GUI and guarantee yourself the disk space back.

Comments are closed.