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

Method delete

crates/chat-cli/src/cli/chat/cli/prompts.rs:121–123  ·  view source on GitHub ↗

Delete the prompt file

(&self)

Source from the content-addressed store, hash-verified

119
120 /// Delete the prompt file
121 fn delete(&self) -> Result<(), GetPromptError> {
122 fs::remove_file(&self.path).map_err(GetPromptError::Io)
123 }
124}
125
126/// Represents both local and global prompts for a given name

Callers 1

execute_removeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected