import os
shutil.rmtree('Path')
It does not delete it and gives me an error. I am using Python 3.7.4 The error is
Traceback (most recent call last): File "C:\Users\Muneeb Khurram\Desktop\gpa.py", line 2, in shutil.rmtree('C:/Users/Muneeb Khurram/Desktop/Py') NameError: name 'shutil' is not defined
import shutilfirst