pub(super) async fn cleanup( services: &Services, family: &Family, references: &BTreeSet<u64>, complete: bool, ) -> Result<bool>