0

I uninstalled BlueStacks as it was unused application, and it persists as a broken application and I can't delete it.

I've tried to sudo rm -rf but it said operation not permitted.

Broken Apps Cant be deleted

Operation cannot be permitted on terminal

Is there any way i can delete it cleanly?

  • Please use copy/paste instead of screenshots for Terminal output to make text accessible to the search function and to people relying on screen readers. – nohillside Oct 20 '19 at 13:27
  • Anyway, why is the application installed in /Library/StagedExtensions? Even support.bluestacks.com/hc/en-us/articles/… implies that is should have been installed in /Applications. – nohillside Oct 20 '19 at 13:28
3

You'll need to boot the Mac in Recovery Mode (hold Cmd + R when rebooting), open a Terminal and run the command below. This will allow you to remove the rest of the app.

rm -rf /Volumes/Macintosh\ HD/Library/StagedExtensions/Applications/BlueStacks.app

The reason is that when you install Bluestacks, you install not only the app itself, but also a kernel extension that is stored in /Library/StagedExtensions. You give specific permission to install that extension.

However, when it comes to uninstalling - as Bluestacks doesn't provider a full uninstaller - you'll have to do it manually. Unfortunately SIP protects the kernel extensions from alteration when booted in standard mode. By rebooting in Recovery Mode (or disabling SIP), you can delete the files.

If you need, you can follow a more thorough how-to on how to reboot in Recovery Mode and remove the kernel extension here:

https://eclecticlight.co/2018/01/02/the-app-you-cant-trash-how-sip-is-broken-in-high-sierra/

  • RE: "open a Terminal and run the same command there"... Running the same command will do nothing in macOS Recovery! One needs to change the path appropriately, e.g.: rm -r /Volumes/Macintosh\ HD/Library/StagedExtensions/Applications/BlueStacks.app – user3439894 Oct 21 '19 at 0:28
  • @user3439894 Thanks - the correct path was also in the link in my answer - I have updated with the correct path! – jksoegaard Oct 21 '19 at 0:37
  • I didn't read the linked article as I'm well versed in deleting from macOS Recovery, however relevant information in links should always be included in the answers as links can become broken. – user3439894 Oct 21 '19 at 1:01
  • Well, I’m quite well versed in that too, but it’s not really the sole purpose of the article. It is specific for Bluestacks. The answe did include the relevant information, and did not rely on the link... – jksoegaard Oct 21 '19 at 5:24
  • RE: "The answe did include the relevant information, and did not rely on the link" Before I posted my first comment, your OP stated "open a Terminal and run the same command there", so how is that including the relevant information when the /Library/StagedExtensions directory doesn't even exist when booted to macOS Recovery!? Had you not included the link and the person asking the question not read it, they'd be getting an error message while trying to "run the same command there"! – user3439894 Oct 22 '19 at 0:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .