MCPcopy
hub / github.com/safishamsi/graphify / handle_delete

Function handle_delete

worked/example/raw/api.py:35–40  ·  view source on GitHub ↗

Delete a document by ID.

(record_id: str)

Source from the content-addressed store, hash-verified

33
34
35def handle_delete(record_id: str) -> dict:
36 """Delete a document by ID."""
37 deleted = delete_record(record_id)
38 if deleted:
39 return {"deleted": record_id}
40 return {"error": f"Record {record_id} not found"}
41
42
43def handle_list() -> dict:

Callers

nothing calls this directly

Calls 1

delete_recordFunction · 0.90

Tested by

no test coverage detected