Skip to main content

remove_concept

Function remove_concept 

Source
pub fn remove_concept(
    bundle: &Bundle,
    target: &ConceptId,
    options: &RemoveOptions,
) -> Result<RemoveReport, RefactorError>
Expand description

Safely removes a concept from the bundle.

ยงErrors

Returns RefactorError::ConceptNotFound if target is not in the bundle, RefactorError::HasInboundLinks if other concepts link to target and force/redirect_to/unlink were not given, or RefactorError::Io on filesystem error.