public boolean removeConfigNodePeer(TConfigNodeLocation configNodeLocation) {
    try {
      consensusImpl.removeRemotePeer(
          DEFAULT_CONSENSUS_GROUP_ID,
          new Peer(
              DEFAULT_CONSENSUS_GROUP_ID,
              configNodeLocation.getConfigNodeId(),
              configNodeLocation.getConsensusEndPoint()));
      return true;
    } catch (ConsensusException e) {
      return false;
    }
  }
Remove a ConfigNode Peer out of ConfigRegion.

@param configNodeLocation config node location
@return True if successfully removePeer. False if another ConfigNode is being removed to the
    ConfigRegion
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/consensus/ConsensusManager.java