Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Unable to delete an invalid download file

MacBook Air, OS X version 10.9.5

Safari 9.0.1 (9537.86.2.7.2)


I'm not sure of the sequence of events that caused this condition, but I have a "Safari download" file that occupies zero bytes on disk (according to Finder/Get info) that neither completely downloads nor can be deleted (aborted). The file's icon shows a progress bar that is 75% but won't complete as it is now invalid. The file can be put in the Trash, but cannot be emptied from the trash. The Trash message indicates, "The operation can't be completed because the item "8Nov15_2.pptx.download" is in use." Regardless of whether I press the Stop or Continue buttons, the file remains in Trash. It appears that the file will never finish downloading because the operation cannot be resumed on an invalid file.

MacBook Air, OS X Mavericks (10.9.5), null

Posted on Dec 1, 2015 3:15 PM

Reply
5 replies

Dec 1, 2015 3:59 PM in response to MrHoffman

Quit Safari - no effect

Reboot - no effect

lsof doesn't show it as being open, but that is perhaps because in .Trash, the item shows as a directory. Is it a directory because it is a Safari download?


In Terminal, I've tried removing the directory, but the response is "Directory not empty". The directory only has . and .. in its file listing, and the . has extended file attributes, but I'm uncertain how to interpret those.

Dec 1, 2015 4:31 PM in response to RandalCh

See what Disk Utility.app verify has to say about the drive, to start with. See if flags anything relevant, or if it wants a repair.

Then see what ls on the 8Nov15_2.pptx.download file reports. Try the following three commands, and some combination of these should show the directory file settings, and the directory contents.


ls -aled@ ~/.Trash/8Nov15_2.pptx.download

ls -ale@ ~/.Trash/8Nov15_2.pptx.download

ls -aleR@ ~/.Trash/8Nov15_2.pptx.download


With ls -al or equivalent used to show the leading-dot "hidden" files, the . and .. are the current and parent directories, and are always present.

Dec 1, 2015 5:31 PM in response to MrHoffman

Disk Utility indicates the disk appears to be ok.


the ls commands respond with the following:


total 0

drwxr-xr-x@ 3 randal GLOBAL\Domain Users 102 Nov 9 09:22 .

com.apple.metadata:kMDItemDownloadedDate 53

com.apple.metadata:kMDItemWhereFroms 129

com.apple.progress.fractionCompleted 5

com.apple.quarantine 21

drwx------ 4 randal GLOBAL\Domain Users 136 Dec 1 17:22 ..

Dec 1, 2015 6:15 PM in response to RandalCh

That's definitely a directory. A pair of nested directories, by the look of it. I'd try — quoting the target file specs as there are spaces, or using a backslash to escape the spaces — using rm and rmdir on the files in that directory.


Don't delete the . and .. files.


To test the path and the access before issuing the rm or rmdir commands, use ls...


ls "~/.Trash/8Nov15_2.pptx.download/GLOBAL\Domain Users"

Unable to delete an invalid download file

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