Can't Delete 0 Byte MPEG-4 File Alias

How do you delete the alias of a 0 byte MPEG-4 file (that can’t be opened because the original item can’t be found)? There is no delete option when I right click on the file nor can I drag and drop it in the Trash Bin. Sharing & Permission = "You have unknown access"

Mac Studio, macOS 13.2

Posted on Mar 19, 2023 3:31 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 19, 2023 5:39 PM

Randall_2023 wrote:

You can use Terminal. You will have to navigate to the directory where the zero byte files are then use:
sudo rm filename.ext.

Make sure you are comfortable with using Terminal and the rm command. rm is unforgiving if you make
a mistake.

FYI, I would recommend adding the " -i " option so the user is prompted to confirm the deletion just in case a mistake is made in the command or the path.

sudo  rm  -i  <filename>


Even better would be to begin typing the command making sure to leave at least one space after the "-i ":

sudo  rm  -i  


Then from the Finder, click & drag the file from the Finder onto the open Terminal window so the proper path is automatically filled in which really helps if there are any special characters & spaces in any of the file/folder names, plus it minimizes the risk of selecting the wrong item to delete. Press the "Return" key to execute the command after dropping the item from the Finder onto the Terminal window.

2 replies
Question marked as Top-ranking reply

Mar 19, 2023 5:39 PM in response to Randall_2023

Randall_2023 wrote:

You can use Terminal. You will have to navigate to the directory where the zero byte files are then use:
sudo rm filename.ext.

Make sure you are comfortable with using Terminal and the rm command. rm is unforgiving if you make
a mistake.

FYI, I would recommend adding the " -i " option so the user is prompted to confirm the deletion just in case a mistake is made in the command or the path.

sudo  rm  -i  <filename>


Even better would be to begin typing the command making sure to leave at least one space after the "-i ":

sudo  rm  -i  


Then from the Finder, click & drag the file from the Finder onto the open Terminal window so the proper path is automatically filled in which really helps if there are any special characters & spaces in any of the file/folder names, plus it minimizes the risk of selecting the wrong item to delete. Press the "Return" key to execute the command after dropping the item from the Finder onto the Terminal window.

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.

Can't Delete 0 Byte MPEG-4 File Alias

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