No way to remove keyboard shortcuts registered by KWin script in System Settings?

Some KWin scripts register shortcuts by calling registerShortcut():
registerShortcut("MinimizeAll", "Minimize all windows", "Meta+Shift+D", minimizeAllWindows);
After removing such a script in System Settings ➟ KWin Scripts ➟ Trash icon by the name of the script all shortcuts registered by now removed script are still present in System Settings ➟ Keyboard ➟ Shorctus ➟ KWin and there is no way to remove them there.
I think there should be a way to remove these shortcuts in System Settings.
What do you think?

I know these shortcuts are saved in ~/.config/kglobalshortcutsrc and one can remove them there (as long as there’s no active plasma session as otherwise changes to this file are lost).

There is a dbus method to remove them, but it will also remove the custom shortcuts from scripts that are disabled, and when you enable them again it will have the default one

qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.cleanUp
1 Like

Thanks. This should really be exposed in the System Settings somehow and should remove only shortcuts for removed scripts, not disabled ones.

Related: https://www.reddit.com/r/kde/comments/abrr30/plasma5_how_do_you_remove_shortcuts_made_by_kwin/