Skip to main content
Glama

checkpoint_delete

Delete a checkpoint to remove saved states from virtual filesystem workspaces, managing storage across sessions and providers.

Instructions

Delete a checkpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
checkpoint_idYes

Implementation Reference

  • Core handler function in CheckpointTools class that performs the checkpoint deletion by delegating to CheckpointManager and returns a CheckpointRestoreResponse indicating success.
    async def checkpoint_delete(self, checkpoint_id: str) -> CheckpointRestoreResponse: """ Delete a checkpoint. Args: checkpoint_id: Checkpoint ID to delete Returns: Response with success status """ await self.checkpoint_manager.delete_checkpoint(checkpoint_id) return CheckpointRestoreResponse( success=True, checkpoint_id=checkpoint_id, restored_at=datetime.now(UTC), )
  • Registers the 'checkpoint_delete' tool using the @server.tool decorator, which proxies the call to the CheckpointTools instance's method.
    @server.tool async def checkpoint_delete(checkpoint_id: str): """Delete a checkpoint.""" return await checkpoint_tools_instance.checkpoint_delete(checkpoint_id)
  • Pydantic BaseModel defining the output response structure for checkpoint_delete (reused from restore). Includes success flag, checkpoint_id, and timestamp.
    class CheckpointRestoreResponse(BaseModel): """Response from checkpoint restore""" success: bool checkpoint_id: str restored_at: datetime

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