public synchronized void deleteProcessorNode(String processorId) {
    try {
      if (ephemeralPath != null) {
        LOG.info("Deleting the ephemeral node: {} of the processor: {} in zookeeper.", ephemeralPath, processorId);
        zkClient.delete(ephemeralPath);
      }
    } catch (Exception e) {
      LOG.error("Exception occurred on deletion of ephemeral node: {}.", ephemeralPath, e);
    }
  }
Deletes the ephemeral node of a processor in zookeeper.
@param processorId uniqueId identifying the stream processor to delete.
samza-core/src/main/java/org/apache/samza/zk/ZkUtils.java