workspace_destroy
Clean up and remove a workspace along with all associated resources to free up storage space.
Instructions
Destroy a workspace and clean up all resources.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- Core handler function that destroys the workspace by calling the workspace manager and returns a success response.async def workspace_destroy(self, name: str) -> WorkspaceDestroyResponse: """ Destroy a workspace and clean up all resources. Args: name: Workspace name Returns: WorkspaceDestroyResponse with success status """ await self.workspace_manager.destroy_workspace(name) return WorkspaceDestroyResponse(success=True, workspace=name)
- src/chuk_mcp_vfs/models.py:68-73 (schema)Pydantic model defining the output schema for the workspace_destroy tool.class WorkspaceDestroyResponse(BaseModel): """Response from workspace destruction""" success: bool workspace: str
- src/chuk_mcp_vfs/server.py:53-56 (registration)Registration of the 'workspace_destroy' tool using @server.tool decorator, which delegates to the workspace_tools handler.@server.tool async def workspace_destroy(name: str): """Destroy a workspace and clean up all resources.""" return await workspace_tools.workspace_destroy(name)