code: def removeDerivedMSCal(msname):
      
  
      # Open the MS
      t = table(msname, readonly=False, ack=False)
      # Remove the columns stored as DerivedMSCal.
      dmi = t.getdminfo()
      for x in dmi.values():
          if x['TYPE'] == 'DerivedMSCal':
              t.removecols(x['COLUMNS'])
      t.flush()
docs: Remove the derived columns like HA from an MS or CalTable.
  
      It removes the columns using the data manager DerivedMSCal.
      Such columns are HA, HA1, HA2, PA1, PA2, LAST, LAST1, LAST2, AZEL1,
      AZEL2, and UVW_J2000.
  
      It fails if one of the columns already exists.