Skip to main content

remove_agent

Function remove_agent 

Source
pub fn remove_agent(storage_root: &Path, slug: &str) -> Result<(), String>
Expand description

Remove the agent with the given slug from the stored roster, then persist.

Removing an absent slug is a no-op success. Note that removing the last agent leaves an empty store, which load_roster will re-seed with the default local agent on the next read.