What about adding shutil.rmtree while here?

I'm of the opinion that if it's file/path based, having access via pathlib.Path makes sense.