Python - How to import 'rmtree' -- shutil

Import rmtree

To import rmtree, Add the following line to the top of your code.

from shutil import rmtree

 

For more information about rmtree:
shutil rmtree