Skip to main content

remove_profile

Function remove_profile 

Source
pub fn remove_profile(profile_name: &str)
Expand description

Remove a named profile from the config file.

The “default” profile is removed by deleting the [default] section. Named profiles are removed from the [profiles] table. Prints a success or error message; does not write to stdout so it is safe in JSON mode.