@@ -0,0 +1,286 @@
+import pathlib%0A%0Adef removeContents(path):%0A    for i in path.glob('*'):%0A        if i.is_dir():%0A            # NOTE: can replace both lines with %60removeDirectory(i)%60 from pathlib-recusive-rmdir scrap%0A            removeContents(i)%0A            i.rmdir()%0A        else:%0A            i.unlink()%0A

Create pathlib-recusive-delete-contents.py