def METHOD_NAME(keybinding: str, mode: modes.Mode) -> None:
    """Remove keybinding from registry.
    See config/configcommands.unbind for the corresponding command.
    """
    for submode in modes.GLOBALS if mode is modes.GLOBAL else (mode,):
        try:
            del _registry[submode][keybinding]
        except KeyError:
            raise commands.CommandError(f"No binding found for '{keybinding}'")