Apple - How to delete a locked app, Karabiner?

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.


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.