Skip to main content

remove

Function remove 

Source
pub fn remove(path: &Path, id: &str) -> Result<bool>
Expand description

Cuts an entry out of a library file, reporting whether it was there.

Only the lines of that one list item are removed. Reserialising the document would be simpler, but users are told to hand edit and version this file, and a round trip through the parser silently deletes their comments.