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

Method remove_by_id

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

Remove context by ID

(&mut self, context_id: &str)

Source from the content-addressed store, hash-verified

492
493 /// Remove context by ID
494 pub async fn remove_by_id(&mut self, context_id: &str) -> Result<(), String> {
495 self.agent_client
496 .remove_context_by_id(context_id)
497 .await
498 .map_err(|e| e.to_string())
499 }
500
501 /// Update context by path
502 pub async fn update_by_path(&mut self, path_str: &str) -> Result<String, String> {

Callers 1

invokeMethod · 0.80

Calls 2

to_stringMethod · 0.80
remove_context_by_idMethod · 0.45

Tested by

no test coverage detected