public void deleteTaskContainerMappings(Iterable<String> taskNames) {
    for (String taskName : taskNames) {
      taskContainerMappingMetadataStore.delete(taskName);
      taskModeMappingMetadataStore.delete(taskName);
      taskNameToContainerId.remove(taskName);
    }
    taskContainerMappingMetadataStore.flush();
    taskModeMappingMetadataStore.flush();
  }
Deletes the task container info from the {@link MetadataStore} for the task names.

@param taskNames the task names for which the mapping will be deleted.
samza-core/src/main/java/org/apache/samza/container/grouper/task/TaskAssignmentManager.java