code: def OnDeleteRows(self, event):
          
  
          bbox = self.grid.selection.get_bbox()
  
          if bbox is None or bbox[1][0] is None:
              # Insert rows at cursor
              del_point = self.grid.actions.cursor[0]
              no_rows = 1
          else:
              # Insert at lower edge of bounding box
              del_point = bbox[0][0]
              no_rows = self._get_no_rowscols(bbox)[0]
  
          with undo.group(_("Delete rows")):
              self.grid.actions.delete_rows(del_point, no_rows)
  
          self.grid.GetTable().ResetView()
  
          # Update the default sized cell sizes
          self.grid.actions.zoom()
  
          event.Skip()
docs: Deletes rows from all tables of the grid