def delete_removed_datasets(drcog_datasets,ckan_datasets):   
    global ckan_name_prefix
    
    datasets_to_remove = []
    
    print "Checking datasets to remove from OpenColorado"
    for ckan_dataset in ckan_datasets:
        ckan_dataset_name = ckan_dataset["name"]
        found = False
        
        for drcog_dataset in drcog_datasets:
            drcog_dataset_name = ckan_name_prefix + drcog_dataset
            
            if (drcog_dataset_name == ckan_dataset_name):
                found = True
                break
        
        if (found == False):
            datasets_to_remove.append(ckan_dataset_name)
    
    print str(len(datasets_to_remove)) + " marked for deletion from OpenColorado:"
    for dataset_to_remove in datasets_to_remove:
        print "  -" + dataset_to_remove
    
    # Delete the datasets
    for dataset_to_remove in datasets_to_remove:
        delete_ckan_dataset(dataset_to_remove)
Test if it returns information on a file located on the Moose
dataset/ETHPy150Open opencolorado/OpenColorado-Tools-and-Utilities/Scripts/Harvest/Drcog/DrcogSync.py/delete_removed_datasets--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/moosefs_test.py/MoosefsTestCase.test_fileinfo