MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / delete_project

Method delete_project

src/services/flow_client.py:1285–1306  ·  view source on GitHub ↗

删除项目 Args: st: Session Token project_id: 项目ID

(self, st: str, project_id: str)

Source from the content-addressed store, hash-verified

1283 raise RuntimeError("创建项目失败")
1284
1285 async def delete_project(self, st: str, project_id: str):
1286 """删除项目
1287
1288 Args:
1289 st: Session Token
1290 project_id: 项目ID
1291 """
1292 url = f"{self.labs_base_url}/trpc/project.deleteProject"
1293 json_data = {
1294 "json": {
1295 "projectToDeleteId": project_id
1296 }
1297 }
1298
1299 await self._make_request(
1300 method="POST",
1301 url=url,
1302 json_data=json_data,
1303 use_st=True,
1304 st_token=st,
1305 timeout=self._get_control_plane_timeout(),
1306 )
1307
1308 # ========== 媒体获取 (使用AT) ==========
1309

Callers

nothing calls this directly

Calls 2

_make_requestMethod · 0.95

Tested by

no test coverage detected