def delete_trials(exp_num, trial_str):
    '''Deletes trials for a specific experiment.'''
    trial_list = utils.parse_trial_request(trial_str)
    nees_logging.log_current_time(neeshub_log_filename)
    for trial in trial_list:
        try:
            shttp.delete_trial(exp_num, trial)
            hub_struct      = '/Experiment-%s/Trial-%s' % (exp_num, trial)
            trial_path = Destination + hub_struct
            shutil.rmtree(trial_path, ignore_errors=True)
            nees_logging.append_log(neeshub_log_filename, 'Trial-%s deleted.' % (trial,))
        except:
            print('No Trial-%s to delete' % (trial,))
            pass
            
def check_cache_place_trials(expnum, start_time, end_time):
    """Executes default trial structuring while at the same time creating a new cache file to make sure that no"""
    nees_logging.log_current_time(neeshub_log_filename)
    caching.create_hub_cache(expnum)
    place_trials_default(expnum, start_time, end_time)