How can I get shutil.rmtree()
to run on the folder it is in? I know I can just give it the path but I want it to be dynamic so I can move it across folders and it will still run without having to edit the path.
I haven't tried anything because I don't know what to try.
The simplest solution would be just these two lines of code.
It deletes the content of the current folder, and itself.
Note. Be careful with this, as with my experience running this, the files do not appear in the recycle bin.
I cannot be liable for any unwanted loss of files.