def force_delete(func, path, exc_info):

    os.chmod(path, stat.S_IWRITE)
    func(path)
Error handler for `shutil.rmtree()` equivalent to `rm -rf`
dataset/ETHPy150Open audreyr/cookiecutter/cookiecutter/utils.py/force_delete