I'm using macOS Catalina (10.15.4).
In my /Application folder, I have a file :
localhost:Applications root# ls -al
drwxr-xr-x 3 root wheel 96 Nov 17 21:42 Karabiner-Elements (之前).app
the characters "之前" is the Chinese word for "previous" or "before" (sorry I cannot find the word in English version). This file is automatically created by OS for duplicate app after I use Migration Assistant to transfer a user account to this Mac.
The file has "Zero Bytes", with only one folder called Contents, which is empty. The /Application/ folder is not locked.
I just want to delete the file, but failed, because it's locked. snapshot image: the info of the file
The lock option in general section is gray. The lock icon in the lower-right of the window is also not clickable. The privilege of wheel and everyone cannot be changed, giving the alert: The operation can’t be completed because you don’t have the necessary permission.
I have searched a lot but nothing works. I have tried :
- remove to trash, but got :
The operation can’t be completed because the item “Karabiner-Elements (之前).app” is locked. sudo rmgotOperation not permittedsudo chflags -R nouchggot nothing happens, not even error.sudo chmod 777gotchmod: Unable to change file mode on Karabiner-Elements (之前).app/: Operation not permitted
How can I delete this file?