#To define a particular parameter, replace the 'parameterName' inside itsm.getParameter('parameterName') with that parameter's name path= r"C:\Users\comodo\Downloads\SAVSCFXP" import os import shutil try: print "Deleting Directory" os.chmod(path,0644) shutil.rmtree(path) print "Deleted Successfully" except Exception as error: print "The Folder working in another process" +path