Deleting Corrupt File

There's this .ePub file sitting on my external drive that I just can't delete. I've tried everything. It shows an error code -36 and is Zero KB. Does anybody know what this is?


MacBook Pro 15″, macOS 11.7

Posted on Nov 30, 2023 11:41 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 30, 2023 12:15 PM

An .epub is not a folder but rather a single compressed zip file with its extension changed to .epub. Your current syntax is attempting to remove it as though it were a directory itself.


Try this:


sudo rm -f /Volumes/THE\ BOOMBOX/Corrupted\ File\ \[Do\ Not\ Touch\]/999.epub

or

sudo rm -f /Volumes/"The BOOMBOX/Corrupted File [Do Not Touch]"/999.epub


Assuming that path is correct. Just a suggestion… avoid naming folders with reserved characters (e.g. [, ]) that the UNIX shell interprets.

Similar questions

2 replies
Question marked as Top-ranking reply

Nov 30, 2023 12:15 PM in response to Himanya

An .epub is not a folder but rather a single compressed zip file with its extension changed to .epub. Your current syntax is attempting to remove it as though it were a directory itself.


Try this:


sudo rm -f /Volumes/THE\ BOOMBOX/Corrupted\ File\ \[Do\ Not\ Touch\]/999.epub

or

sudo rm -f /Volumes/"The BOOMBOX/Corrupted File [Do Not Touch]"/999.epub


Assuming that path is correct. Just a suggestion… avoid naming folders with reserved characters (e.g. [, ]) that the UNIX shell interprets.

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.

Deleting Corrupt File

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