How do I remove/delete a folder that is not empty with Python?
Question: I am getting an 'access is denied' error when I attempt to delete a folder
that is not empty. I used the following command in my attempt:
`os.remove("/folder_name")`.

What is the most effective way of removing/deleting a folder/directory that is
not empty?


Answer: 
    import shutil
    
    shutil.rmtree('/folder_name')
    

[Standard Library Reference:
shutil.rmtree](http://docs.python.org/library/shutil.html#shutil.rmtree).

