When using the "Measure" Tool with Gizmos turned off, trying to delete anything will result in an error message instead. When Gizmos are on then view3d_ruler_remove_invoke will return OPERATOR_PASS_THROUGH if no rulers are selected. This way you can delete other objects. But if Gizmos are off then it returns OPERATOR_CANCELLED which stops in its tracks. Return OPERATOR_PASS_THROUGH in this case instead. Pull Request: https://projects.blender.org/blender/blender/pulls/131340