delete confimation on Bones is it possible to remove?

hi im now currently studying rigging and now im assigning hotkeys that i find important tools

but i notice when i delete bones when i press a hotkey in edit mode there is
confimation dialog and i find it slow downs my workflow

is it possible to remove the confimation and just delete the bones straight away?
just like how face / vertex / edge in mesh edit mode delete ( no confimation )


thank you very much for answers

You can make a custom operator that calls bpy.ops.armature.delete() but overrides the context, so that the invoke() function for it is not called:


import bpy

class ARMATURE_xOT_delete_no_popup(bpy.types.Operator):
    bl_idname = "armature.addon_delete_no_popup"
    bl_label = "Delete Without Popup"
    bl_options = {'REGISTER', 'UNDO'}
    
    @classmethod
    def poll(cls, context):
        return context.mode == 'EDIT_ARMATURE'
    
    def execute(self, context):
        return bpy.ops.armature.delete('EXEC_DEFAULT')
    
def register():
    bpy.utils.register_class(ARMATURE_xOT_delete_no_popup)
    
def unregister():
    bpy.utils.unregister_class(ARMATURE_xOT_delete_no_popup)
    
if __name__ == "__main__":
    register()

hello and thank you
i notice there are so many pop out confirmation when i started adding shortcut key ( edit mode bone ) maybe someday there will be a future check box to toggle off the confirmation box