diff --git a/antarest/study/repository.py b/antarest/study/repository.py index 806a99b2f8..1a540786e2 100644 --- a/antarest/study/repository.py +++ b/antarest/study/repository.py @@ -275,9 +275,6 @@ def get_all_raw(self, exists: t.Optional[bool] = None) -> t.Sequence[RawStudy]: def delete(self, id_: str, *ids: str) -> None: ids = (id_,) + ids session = self.session - """for study_id in ids: - study: Study = session.query(Study).get(study_id) - session.delete(study)""" session.query(Study).filter(Study.id.in_(ids)).delete(synchronize_session=False) session.commit()