def remove_directory(dirpath):
 if os.path.exists(dirpath):
  shutil.rmtree(dirpath, ignore_errors=True)

def remove_directory ( dirpath ) : if os . path . exists ( dirpath ) : shutil . rmtree ( dirpath , ignore_errors = True )
recursively remove the directory path given .