MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / delete

Method delete

core/src/memory/service.rs:168–172  ·  view source on GitHub ↗

Delete a single memory by its ID.

(&self, memory_id: &MemoryId)

Source from the content-addressed store, hash-verified

166
167 /// Delete a single memory by its ID.
168 pub async fn delete(&self, memory_id: &MemoryId) -> GraphBitResult<()> {
169 let old = self.store.get_memory(memory_id).await?;
170 let old_content = old.map(|m| m.content).unwrap_or_default();
171 self.delete_memory_internal(memory_id, &old_content).await
172 }
173
174 /// Delete all memories matching a scope.
175 pub async fn delete_all(&self, scope: &MemoryScope) -> GraphBitResult<()> {

Callers

nothing calls this directly

Calls 2

get_memoryMethod · 0.80

Tested by

no test coverage detected