import glob
import shutil
sub_folders_pathname = '/map/zoom*/'
sub_folders_list = glob.glob(sub_folder_pathname)
for sub_folder in sub_folders_list:
    shutil.rmtree(sub_folder)
Removing sub-folders in Python