Question

I'm running High Sierra on my older iMac. I recently loaded the Karabiner-elements.app but when I tried to delete it, a message appeared that said it was locked and couldn't be deleted. So I opened Get Info for it and confirmed that the app was locked. I couldn't uncheck the locked box so I clicked on the 🔒 icon at the bottom. The box where I can uncheck the lock feature is still greyed out.

enter image description here

I also opened a terminal window and navigated to the /Applications folder. I determined that the Karabiner app was there and I typed sudo rm -r Karabiner-Elements.app but I got a message that said Operation not permitted.

How do I delete this app?

Was it helpful?

Solution

It should be done in the app itself.

In “Misc” tab, press the "Uninstall Karabiner-Elements" button.

You can also uninstall Karabiner-Elements from command line.

$ sudo '/Library/Application Support/org.pqrs/Karabiner-Elements/uninstall_core.sh'

Documentation


For any other app/file which are locked, try to unlock it by unchecking the "locked" box in "Get Info" first.

If the box is greyed out, run the following in Terminal:

cd "/Applications"
sudo chflags noschg "Karabiner-Elements.app"

Then delete it by right click > "Move to Trash"

Read more about noschg at man chflags.

OTHER TIPS

I had forgotten I had installed this app, but accidentally deleted the kernel extension and uninstaller script. I was left with an app that could not be trashed or removed or moved in any way.

Solved it like this:

  • Download Karabiner-Elements
  • Install
  • Launch the app
  • Go to "misc" and uninstall with the uninstall button.
  • reboot

And then never install it again.

Really very annoying, I spent a lot of time trying out different suggestions but none of them worked. Changing the flags, changing the user, etc.

None of the scripts above or the documentation from Karabinar existed on my paths or worked...the only way I was able to do this was

  1. reboot my mac and kept holding command+r (this took me to recovery mode)

  2. while in recovery mode I went to Utilities > Terminal and typed

    csrutil disable
    reboot
  1. after rebootI typed
 sudo -i

and then

cd /Library/SystemExtensions 

and I saw a funny folder name like this FB393D41-2F97-4069-97E1-1F97B711EA3B ,

rm -rf that folder (be careful not to delete anything else)

  1. then
ps -ef|grep karab

and kill the job with kill -9 PROCCESS_ID

  1. went to application folders via finder and deleted Karabinar from there too.

it was a pain for me but happy I removed this...if I had known this would be this much pain to remove it, I would have not even installed at all to begin with..

hi guys this worked for me i hope it will for you too, just go to the Terminal :

bash '/Library/Application Support/org.pqrs/Karabiner-DriverKit-VirtualHIDDevice/scripts/uninstall/deactivate_driver.sh'
sudo '/Library/Application Support/org.pqrs/Karabiner-Elements/uninstall.sh'

if it says : Operation not permitted. then this :

sudo rm -rf /Applications/Karabiner-Elements.app
rm: /Applications/Karabiner-Elements.app/Contents: Operation not permitted
rm: /Applications/Karabiner-Elements.app: Operation not permitted

hope it works for you ;)

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top