Zombie folder refuses to Delete from Desktop

With the exception of the fact that this user's struggle (posted April 2020) involved a stuck directory in the Trash (Catalina) vs. my own issue: a stuck directory on the Desktop (Big Sur), our issues are otherwise exactly the same. This is so frustrating! I salute the fellow who was helping him out btw! Mr. John Galt was extremely informative (and must like Ann Rand given his username :).


Like the poster in the above-linked thread, I previously tried all the usual command-line procedures, both from within single-user mode, and by accessing Terminal by booting into recovery mode. Like him, I receive the same "directory is not empty" response.


For full disclosure, I am asking about this concurrently on Ask Different.


What I have, is a ghost directory on my desktop with two files of 0KB within it. Neither the files nor the directory--which appeared out-of-nowhere and is called "Applications"--can be deleted by -rm -r and so forth. It does however open, and doing so reveals two files that are grayed-out/locked, of 0KB filesize.


Changing permissions from the info inspector (unlocking the padlock) is a no-go. FWIW, the files are artifacts of a since-removed automator app called Karabiner Elements. Both files are packages, and revealing the contents of them shows a directory called Contents with nothing in them.


What are my options to inoculate this bugger?


Thanks in advance!







MacBook Pro 13″, macOS 11.2

Posted on Mar 14, 2021 4:22 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 14, 2021 4:27 PM

I know what I would try. Boot into Recovery Mode (cmd+r), disable SIP by typing "csrutil disable" (without quotes) into the Terminal. Restart, try deleting the folder. Then restart in Recovery Mode again, type "csrutil enable" (without quotes) in the Terminal then restart.

Similar questions

3 replies

Mar 14, 2021 5:45 PM in response to dialabrain

Hi Brian. Thanks for this suggestion! Unfortunately, no dice. I should note; during my initial rm -r from Recovery mode, I think I responded to the override the override prompts with the word "yes" rather than the letter "y." Wonder if this matters? What I do know, is that the questions were different each time, for various (new) overrides. There were over a dozen of these, at which point I instead opted to run a far more-risky "rm -rf." This operation was looong!!!---perhaps hundreds of lines of "stuff" scrolled in the Terminal window after I ran that command---which resulted (after restart) in no change at all.


Not surprising though, after I posted here in this forum and seeing your suggestion, I encountered a "directory not found" when first re-attempting "rm -r" after disabling SIP per your recommendation. I then once again did "rm -rf" which was interesting: Terminal took this command (with proper path to the directory of course) and just immediately presented another idle prompt without any message. So, I have no idea if anything really happened.


I did follow your steps to the letter with re-starts exactly as you recommended (i.e. the SIP is now re-enabled).


TBH, I'm sort of gobsmacked this has become such a challenge! What seriously are my (or anyones) options? I think command-line ideas are dwindling. It's looking more like some sort of restore process from either a clone of the drive or from a Time Machine backup (I would make the latter immediately if I take this on). There is also that internet repair option, but I sort of freak out but the idea of various preferences/settings not making the transfer as I would hope. Thanks again for the help!

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.

Zombie folder refuses to Delete from Desktop

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