diff --git a/app/crud/crud_body.py b/app/crud/crud_body.py index 009c1e9..39af2b5 100644 --- a/app/crud/crud_body.py +++ b/app/crud/crud_body.py @@ -177,5 +177,9 @@ def get_multi( count, ) + def delete_multi(self, db: Session) -> None: + db.query(self.model).delete() + db.commit() + body = CRUDBody(Body)