def removing_dir_tree(DIR_TO_DELETE):

    try:
        # we could also use
        shutil.rmtree(DIR_TO_DELETE)
        #os.rmdir(DIR_TO_DELETE)
    except __HOLE__, e:
        print ("Error: %s - %s." % (e.filename,e.strerror))
dataset/ETHPy150Open bt3gl/Neat-Problems-in-Python-and-Flask/Version-Control/src/system_operations.py/removing_dir_tree