Skip to main content

remove

Function remove 

Source
pub fn remove(path: &Path, profile: &str) -> Result<Removed, EditError>
Expand description

Delete a profile from the config file.

The whole [profiles.x] table goes, display settings included: half a profile is worse than none, because the keys left behind still resolve and still send requests. default_profile naming it is dropped rather than pointed somewhere else — guessing which organisation should inherit the bare command is exactly the guess this tool does not make.

The account and its keychain token are untouched: an account can back several profiles, and forgetting a credential is auth logout.