deletion of folders

how can i delete a folder using python script?and what are the return values??


If you want to delete a folder that's empty use os.rmdir:

import os

If you want to delete a folder that's not empty use shutil.rmtree:

import shutil  

you can use os.rmdir() to remove a directory. To remove a directory tree recursively, you can use shutil.rmtree. If you know that you already have empty directory nodes, you can also check out os.removedirs()

Need Your Help

Getting an error while going to reset password

c# forgot-password

I created MVC 4 application. In that application If user forgot the password I have method to send an email to user to reset password. I'm using Identity membership

Selenium webdriver doesn't click on save button in chrome and firefox

javascript jquery selenium

My project is in mvc and I want to test it using selenium web driver.