public void removeTargetAssignment(String memberId) {
        updateInvertedTargetAssignment(
            memberId,
            targetAssignment.getOrDefault(memberId, Assignment.EMPTY),
            Assignment.EMPTY
        );
        targetAssignment.remove(memberId);
    }
Removes the target assignment of a member.

@param memberId The member id.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/ModernGroup.java