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