Serhiy Storchaka added the comment:
This is virtually a duplicate of issue33498.
shutil.rmtree() is very complex function. It is not trivial task to remove
directories and files recursively in safe and efficient way. It needs also a
way to customize errors handling. We do not want to duplica
New submission from Charles Machalow :
I think it would make sense to add a recurse flag to the Path.rmdir() method.
It would default to False (to allow for current behavior). If set to True, the
method would act very similarly to shutil.rmtree() in that it would delete all
files in the direc