Andy K. answered 07/31/19
Tutor
New to Wyzant
B.S. in Computer Science and Bioinformatics, Specializing in Python
To remove a non-empty directory you may use the rmtree() method from the shutil library. For example,
import shutil
target_directory = "/path/to/directory"
shutil.rmtree(target_directory)