This commit is contained in:
Timothy J. Baek 2024-06-11 14:32:01 -07:00
parent 2be14d57bf
commit 9bd054490f

View File

@ -176,4 +176,8 @@ async def delete_toolkit_by_id(request: Request, id: str, user=Depends(get_admin
if id in TOOLS:
del TOOLS[id]
# delete the toolkit file
toolkit_path = os.path.join(TOOLS_DIR, f"{id}.py")
os.remove(toolkit_path)
return result