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

How to delete Unix Executable Files

I have some very old files on my laptop that I cannot delete. The file type is: Unix Executable File. They are leftover files from some obsolete graphics software I was using back in the early '90's (not system related or anything related to current software). When I attempt to trash these files, I get error msg: The operation can’t be completed because an unexpected error occurred (error code -1407).


Any suggestions on another way to delete them or a tool for doing it?

MacBook Pro 2.4 GHz Intel Core 2 Duo, Mac OS X (10.6.8)

Posted on Feb 12, 2012 10:23 AM

Reply
8 replies

Feb 12, 2012 9:31 PM in response to AMCarter3

AMCarter3 wrote:


I have some very old files on my laptop that I cannot delete. The file type is: Unix Executable File.

The type is bogus. It's what Finder says when the file has no filename extension, nor file type signature.

When I attempt to trash these files, I get error msg: The operation can’t be completed because an unexpected error occurred (error code -1407).

The error is "Expected a folder, got a file". Possibly bogus too.


The simplest way to get rid of them (if they're not too many) is in Terminal. Here's a short description of Terminal


<http://guides.macrumors.com/Terminal>


To delete one of your files, in Terminal, at your prompt, type


rm -fR


(that's "rm<blank_space><hyphen>fR<blank_space>")


Then drag the file on the Terminal window. Its path should be inserted on the command line. (Make sure it's the right file. The rm command is not undoable.) Finally, press Return to execute the command. The file should be deleted whatever it is. If there's an error, copy the message text and paste it here.

Feb 13, 2012 6:01 AM in response to AMCarter3

I was finally able to trash all of the files. However, Secure Delete did NOT do it. Checking permissions did NOT do it. Unlocking the file did NOT do it. Running Disk Utilities was something I had already tried - it did not help. I even tried using the Terminal RM (remove) function and that did NOT work. Pesky little buggers.


BUT, I did get an idea from everyone's suggestions. I was finally able to send them to the trash and delete them by adding a suffix to each file... like *.txt* or *.doc*... and then deleting the suffix. That worked. I could then trash the files and empty the trash.


Thanks for the input.

Aug 19, 2012 3:54 PM in response to AMCarter3

Hi,
I'm having a similar problem. I can't delete a damanaged file (in this case a jpg). I"m trying to backup my my external drive and I get an error: "The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk.Latest successful backup: 8/18/12 at 2:21 PM"


So I ran Disk Utility on all draives no problem. Then I ran Time Machine buddy and found the offending files (three 3 jpgs that won't open). When I try to move these to the trash, I get this error: The operation can’t be completed because an unexpected error occurred (error code -1407).


When I tried to dete the files using fane_J's recommendation using Terminal I get this error:

rm: illegal option -- /

usage: rm [-f | -i] [-dPRrvW] file ...

unlink file


Any ideas?

Aug 19, 2012 3:54 PM in response to fane_j

Hi,
I'm having a similar problem. I can't delete a damanaged file (in this case a jpg). I"m trying to backup my my external drive and I get an error: "The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk.Latest successful backup: 8/18/12 at 2:21 PM"


So I ran Disk Utility on all draives no problem. Then I ran Time Machine buddy and found the offending files (three 3 jpgs that won't open). When I try to move these to the trash, I get this error: The operation can’t be completed because an unexpected error occurred (error code -1407).


When I tried to dete the files using fane_J's recommendation using Terminal I get this error:

rm: illegal option -- /

usage: rm [-f | -i] [-dPRrvW] file ...

unlink file


Any ideas?

How to delete Unix Executable Files

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