Keybinds (keycodes, shortcodes) are keyboard shortcuts assigned to specific actions in Blender. For example, pressing “Shift + a” opens the menu for adding new objects to the scene. Keybinds are incredibly important in Blender, as most workflows rely on keyboard shortcuts. However, sometimes we need to remove keybinds.
The easiest way to delete keybinds is manually.
To do this, open the “Preferences” area, switch to the “Keymap” tab, find the desired keybind in the list that appears, and remove it by pressing the “X” button.
Keybinds can also be deleted using the Blender Python API.
In the API, all keybinds are stored in a “keymap” container. There are many such containers, each intended for its own purpose. For example, add-on developers typically place all keybinds assigned to each add-on in a single keymap.
We can get a list of all keymaps using the keymaps list.
|
1 2 3 |
bpy.context.window_manager.keyconfigs.default.keymaps[:] # [bpy.data.window_managers['WinMan']...KeyMap, ...] |
For convenience, we can display a list of keymaps along with their names.
|
1 2 3 4 5 6 |
for keymap in bpy.context.window_manager.keyconfigs.default.keymaps: print(keymap.name, keymap) # Window <bpy_struct, KeyMap("Window") at 0x000002A16B6A7EC8> # Screen <bpy_struct, KeyMap("Screen") at 0x000002A16B6A7D88> # ... |
Keymap can be retrieved from a list by name. For example, for the “Info” keymap:
|
1 2 3 |
bpy.context.window_manager.keyconfigs.default.keymaps['Info'] # bpy.data.window_managers['WinMan']...KeyMap |
Given a pointer to the desired keymap, we can get a list of all keybinds contained within it.
Let’s pring all keybindings for the “Info” keymap.
|
1 2 3 4 5 6 |
for keymap_item in bpy.context.window_manager.keyconfigs.default.keymaps['Info'].keymap_items: print(keymap_item.name, keymap_item) # Select Report <bpy_struct, KeyMapItem("info.select_pick") at 0x000001F0B6A31488> # Box Select <bpy_struct, KeyMapItem("info.select_box") at 0x000001F0B6A313C8> # ... |
Having a pointer to the desired keybind and the keymap it belongs to, we can remove the keybind.
For example, let’s delete all keybinds from the “Info” keymap.
|
1 2 |
for keymap_item in bpy.context.window_manager.keyconfigs.default.keymaps['Info'].keymap_items: info_keymap.keymap_items.remove(keymap_item) |
This way, we can remove absolutely all keybinds in all keymaps. Well, just in case you need to do that (No!).
|
1 2 3 |
for keymap in bpy.context.window_manager.keyconfigs.default.keymaps: for keymap_item in keymap.keymap_items: keymap.keymap_items.remove(keymap_item) |
Keep in mind that after executing this code, Blender will be practically unusable!

.blend file on Patreon