First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
answered 2018-08-09 11:12:02 -0600
The following should do what you need it to do:
import shutil shutil.rmtree(YOUR_FOLDER_TO_DELETE)