code: public static void removeConnectionData(String providerId, String providerUserId, Profile profile) {
          Map<String, List<Map<String, Object>>> allConnections = profile.getAttribute(CONNECTIONS_ATTRIBUTE_NAME);
  
          if (MapUtils.isNotEmpty(allConnections)) {
              List<Map<String, Object>> connectionsForProvider = allConnections.get(providerId);
  
              if (CollectionUtils.isNotEmpty(connectionsForProvider)) {
                  for (Iterator<Map<String, Object>> iter = connectionsForProvider.iterator(); iter.hasNext();) {
                      Map<String, Object> connectionDataMap = iter.next();
  
                      if (providerUserId.equals(connectionDataMap.get("providerUserId"))) {
                          iter.remove();
                      }
                  }
              }
          }
      }
docs: Remove the {@link ConnectionData} associated to the provider ID and user ID.
  
  @param providerId        the provider ID of the connection
  @param providerUserId    the provider user ID
  @param profile           the profile where to remove the data from