code: def remove_primary_analyses(self):
          
          for ar, analyses in self.analyses_to_remove.items():
              analyses_ids = list(set(map(api.get_id, analyses)))
              ar.manage_delObjects(analyses_ids)
          self.analyses_to_remove = dict()
docs: Remove analyses relocated to partitions