GH-73991: Rework pathlib.Path.rmtree() into delete()
#122368
Merged
pathlib.Path.rmtree() into delete()
#122368