Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

refactor: remove unused dissolve_tenant static method (#22690)

Xin Zhangbddeebd4c985
diff --git a/api/services/account_service.py b/api/services/account_service.py
index c13ae7a4f03..352efb2f0c9 100644
--- a/api/services/account_service.py
+++ b/api/services/account_service.py
@@ -1067,15 +1067,6 @@ class TenantService:
target_member_join.role = new_role
db.session.commit()
- @staticmethod
- def dissolve_tenant(tenant: Tenant, operator: Account) -> None:
- """Dissolve tenant"""
- TenantService.check_member_permission(tenant, operator, None, "remove")
-
- db.session.query(TenantAccountJoin).filter_by(tenant_id=tenant.id).delete()
- db.session.delete(tenant)
- db.session.commit()
-
@staticmethod
def get_custom_config(tenant_id: str) -> dict:
tenant = db.get_or_404(Tenant, tenant_id)