public Mono<DeleteResult> deleteAllGroupMembers(
            @Nullable Set<Long> groupIds,
            @Nullable ClientSession session,
            boolean updateMembersVersion) {
        return groupMemberRepository.deleteAllGroupMembers(groupIds, session)
                .flatMap(result -> {
                    long deletedCount = result.getDeletedCount();
                    if (deletedCount == 0) {
                        return OperationResultPublisherPool.ACKNOWLEDGED_DELETE_RESULT;
                    }
                    if (isMemberCacheEnabled) {
                        if (groupIds == null) {
                            groupIdToMembersCache.invalidateAll();
                        } else {
                            groupIdToMembersCache.invalidateAll(groupIds);
                        }
                    }
                    if (updateMembersVersion) {
                        return groupVersionService.updateMembersVersion(groupIds)
                                .thenReturn(result);
                    }
                    return OperationResultPublisherPool.ACKNOWLEDGED_DELETE_RESULT;
                });
    }
@return Possible codes: {@link ResponseStatusCode#OK}
        {@link ResponseStatusCode#SEND_MESSAGE_TO_MUTED_GROUP}
        {@link ResponseStatusCode#SEND_MESSAGE_TO_INACTIVE_GROUP}
        {@link ResponseStatusCode#MUTED_GROUP_MEMBER_SEND_MESSAGE}
turms-service/src/main/java/im/turms/service/domain/group/service/GroupMemberService.java