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