pub fn uninstall(layout: &Layout, apply: bool) -> Result<Vec<Action>, RkError>Expand description
Remove every installed skill under each root, previewing by default.
Only bytes this tool can vouch for go: a destination holding the payload’s bytes or bytes the record says it wrote, plus the recorded leftovers, and a directory only once nothing else lives in it. A destination the user has edited is theirs now and stays, reported rather than removed. An absent destination is a no-op, so a re-run succeeds. Removed destinations leave the record too; what is gone cannot be vouched for.
§Errors
Returns RkError::Refused when the shared root is reached through a
symlink, or when a destination is a symlink or not a regular file, and
RkError::Io when a removal fails.