Skip to content
This repository was archived by the owner on Sep 22, 2023. It is now read-only.

Commit 77213a9

Browse files
committed
Add vfolder id parameter when deleting vfolder
* Needed for delete vfolder by superadmin.
1 parent 292cca4 commit 77213a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ai/backend/client/vfolder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ async def info(self):
7373
return await resp.json()
7474

7575
@api_function
76-
async def delete(self):
76+
async def delete(self, oid=None):
7777
rqst = Request(self.session, 'DELETE', '/folders/{0}'.format(self.name))
78+
if oid is not None:
79+
rqst.set_json({'id': oid})
7880
async with rqst.fetch():
7981
return {}
8082

0 commit comments

Comments
 (0)