MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / clear_immediate

Method clear_immediate

crates/chat-cli/src/util/knowledge_store.rs:462–467  ·  view source on GitHub ↗

Clear all contexts immediately (synchronous operation)

(&mut self)

Source from the content-addressed store, hash-verified

460
461 /// Clear all contexts immediately (synchronous operation)
462 pub async fn clear_immediate(&mut self) -> Result<String, String> {
463 match self.agent_client.clear_all_immediate().await {
464 Ok(count) => Ok(format!("✅ Successfully cleared {} knowledge base entries", count)),
465 Err(e) => Err(format!("Failed to clear knowledge base: {}", e)),
466 }
467 }
468
469 /// Remove context by path
470 pub async fn remove_by_path(&mut self, path: &str) -> Result<(), String> {

Callers 1

handle_clearMethod · 0.80

Calls 1

clear_all_immediateMethod · 0.45

Tested by

no test coverage detected