pub fn remove(
datasets: Vec<impl AsRef<str>>,
force: bool,
) -> Result<(), DataError>
Expand description
Removes the dataset with the given identifier from the local database.
§Arguments
datasets
: The list of datasets to delete.force
: Whether or not to force the removal (i.e., if true, do not ask the user for confirmation).
§Returns
Nothing, but does delete the datasets from the ~/.local/share/brane/data
folder.
§Errors
This function may error if the removal of one of the datasets failed (after which no other will be removed). This is typically due to the dataset not being found or not having permissions to remove it.