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
| Name | Required | Description | Default |
|---|---|---|---|
| checkpoint_id | Yes |
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), )
- src/chuk_mcp_vfs/server.py:170-173 (registration)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)
- src/chuk_mcp_vfs/models.py:310-316 (schema)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