'Removes the training directory.'

def remove_training_directory(self, train_dir):

    try:
        logging.info('%s:    Removing    existing    train    directory.', task_as_string(self.task))
        gfile.DeleteRecursively(train_dir)
    except:
        logging.error(((('%s:    Failed    to    delete    directory    ' + train_dir) + '    when    starting    a    new    model.    Please    delete    it    manually    and') + '    try    again.'), task_as_string(self.task))
