New GitHub issue #96279 from SimpleArt:<br>
<hr>
<pre>
# Documentation
In the documentation for [`pathlib.Path.Walk`](https://docs.python.org/3.12/library/pathlib.html#pathlib.Path.walk), there is a typo in the provided example's keyword argument that should be `top_down=False`:
```python
# Delete everything reachable from the directory "top".
# CAUTION: This is dangerous! For example, if top == Path('/'),
# it could delete all of your files.
for root, dirs, files in top.walk(topdown=False):
for name in files:
(root / name).unlink()
for name in dirs:
(root / name).rmdir()
```
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/96279">View on GitHub</a>
<p>Labels: docs</p>
<p>Assignee: </p>