code: def clear_measurements(self):
          
          mid_list = self.assignments.get('measurements', None)
          if mid_list is not None:
              for mid in mid_list:
                  self.configs.delete_measurements(mid=mid)
              self.assignments['measurements'] = None
docs: Forget any previous measurements