import os import shutil files = './front_face/' for root, dirs, files in os.walk(files): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) files = './output_unique_ALLUNQ/' for root, dirs, files in os.walk(files): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) files = './sepration_cluster/' for root, dirs, files in os.walk(files): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) files = './sepration_crop/' for root, dirs, files in os.walk(files): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) files = './unique_1/' for root, dirs, files in os.walk(files): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) files = './Allunq_People/' for root, dirs, files in os.walk(files): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) files = './people_Allunq_zero_maingallery/' for root, dirs, files in os.walk(files): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) # files = './unique_1/' # for root, dirs, files in os.walk(files): # for f in files: # os.unlink(os.path.join(root, f)) # for d in dirs: # shutil.rmtree(os.path.join(root, d)) # files = './Copy_Gallery/' # # for root, dirs, files in os.walk(files): # for f in files: # os.unlink(os.path.join(root, f)) # for d in dirs: # shutil.rmtree(os.path.join(root, d)) os.remove('known_encodings.pickle') os.remove('people_copyGallery_known_encodings.pickle') os.remove('Zero_gallery_known_encodings.pickle')