Skip to main content

remove

Function remove 

Source
pub fn remove(
    name: &str,
    registry: &dyn ProjectRegistry,
) -> Result<Vec<Row>, CliError>
Expand description

Unregisters the named project; files on disk are untouched.

The match-count check and removal run inside update_projects so the read and the write are atomic with respect to concurrent registry mutations.

ยงErrors

Returns CliError::UnknownProjectAmong when no project has that name, or CliError::AmbiguousProject when more than one project shares the name.