Skip to main content
Glama

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
NameRequiredDescriptionDefault
nameYes

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)
  • Pydantic model defining the output schema for the workspace_destroy tool.
    class WorkspaceDestroyResponse(BaseModel):
        """Response from workspace destruction"""
    
        success: bool
        workspace: str
  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrishayuk/chuk-mcp-vfs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server