def file_remove ( self , path , filename ) : if os . path . isfile ( path + filename ) : os . remove ( path + filename )
remove file in the path in python
Check if filename exists and remove
def file_remove(self, path, filename):
        """Check if filename exists and remove
        """
        if os.path.isfile(path + filename):
            os.remove(path + filename)