pub fn cmd_delete(mana_dir: &Path, id: &str) -> Result<()>Expand description
Delete a unit and clean up all references to it in other units’ dependencies.
- Load the unit to get its title (for printing)
- Delete the unit file
- Scan all remaining units and remove deleted_id from their dependencies
- Rebuild the index