MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / delete_checkpoint

Method delete_checkpoint

core/state.py:406–413  ·  view source on GitHub ↗

Delete a checkpoint.

(self, checkpoint_id: str)

Source from the content-addressed store, hash-verified

404 return dict(row) if row else None
405
406 def delete_checkpoint(self, checkpoint_id: str) -> bool:
407 """Delete a checkpoint."""
408 with self._lock:
409 cur = self._conn.execute(
410 "DELETE FROM checkpoints WHERE id = ?", (checkpoint_id,)
411 )
412 self._conn.commit()
413 return cur.rowcount > 0
414
415 def execute(self, sql: str, params: tuple = None):
416 """Execute arbitrary SQL (for schema extensions)."""

Callers 1

prune_checkpointsFunction · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected