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

Error code -8072

Hi,

I am trying to delete a folder of Word documents from Backups on a WD HDD. I have changed all the permissions so I am now the owner, but an error message saying the folder cannot be deleted because of 'error code -8072' appears.

I have googled this and searched Apple's Knowledge base - no joy. I also saw an earlier post on this referring to the iPhoto forum, but this is not iPhoto related.

Any advice gratefully received. Thanks.

20" iMac 2008, Mac OS X (10.6.3)

Posted on Apr 2, 2010 8:55 PM

Reply
8 replies

Apr 3, 2010 9:47 PM in response to Geoff Pitts

I suspect you have a file that has unusual permissions, flags or extended attributes set. These would be settings you can't generally make in the Finder.

1. Open /Applications/Utilities/Terminal
2. Type or paste "ls -aleO@R " (without the quotes, capitalization matters) and DON"T hit enter.
3. Drag a single file that won't delete into the Terminal window.
4. Hit return.

You should see a line like this:
localhost:~ dan$ ls -aleO@R ~/Documents/ACFA/bash\ volunteer\ schedule.rtf
-rw-r--r--@ 1 dan staff - 703 Aug 23 2007 /Users/dan/Documents/ACFA/bash volunteer schedule.rtf

Paste it here.

Aug 30, 2010 10:34 AM in response to Geoff Pitts

Hi there - I hit the same issue today and tried to google the error but didnt get anywhere.. finally went to terminal and forced deleted the folder and all files under it. Below are steps.. hope this helps you.

- Open terminal (either through applications or just do a spotlight search)
- Type "rm -rf" in the terminal window (without the quotes and dont hit enter)
- Drag the folder you want to delete into the terminal window - the path of the folder will appear
- Make sure there isnt an extra space at the end of the path.. delete it if there is one
- Hit enter
- The folder from your WD HDD will vanish!.. magic.

Note - the above is a permanent delete option - it wont go to any trash folder.. follow the above steps only if you want to permanently delete.. good luck.

thanks

Sep 27, 2010 7:43 PM in response to Lucipherous

I had a similar problem trying to get rid of an empty directory. This thread gave me some important clues to solving my problem. Perhaps my problem was the same as yours. The directory I was unable to delete with Finder contained a hidden file. Once I deleted that file, everything was hunky-dory.


I opened the terminal window and used UNIX commands. The commands you will need are:

"ls" - lists all files and directories in a directory
"cd" - for "Change Directory" - this will take you to a new directory
FYI "cd .." takes you up a directory level
"rm" - for ReMove file

Here is what I did:

1) Have the directory I wanted to delete visible in Finder.
2) Open a terminal window. (go to Spotlight and type "Terminal")
3) type "cd " (Without the quotation marks. The extra space is crucial.)
4) Drag the folder-I-want-to-delete to the terminal window.
5) Hit Return key.

You should now be in the folder you want to delete. In my case, Finder told me that the directory was empty.

6) Type "ls" in the Terminal Window (w/o quotation marks)
This should also suggest that the directory is empty.

7) Type "ls -a" (which shows hidden files)
This revealed that my supposedly empty directory contained the file ".DS_Store"

8) Type "rm .DS_Store" and hit Return. (In your case, if you have a hidden file, you will want to type its EXACT name - file names are case-sensitive)

9) Once the folder-I-want-to-delete was genuinely empty, I was able to use Finder to delete my folders as I wished to.


I hope that helps.

Good Luck.

Ted

Error code -8072

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