'Removes a file with the given path.
Passes if the file does not exist, but fails if the path does
not point to a regular file (e.g. it points to a directory).
The path can be given as an exact path or as a glob pattern.
The pattern matching syntax is explained in `introduction`.
If the path is a pattern, all files matching it are removed.'

def remove_file(self, path):

    path = self._absnorm(path)
    matches = self._glob(path)
    if (not matches):
        self._link("File    '%s'    does    not    exist.", path)
    for match in matches:
        if (not os.path.isfile(match)):
            self._error(("Path    '%s'    is    not    a    file." % match))
        os.remove(match)
        self._link("Removed    file    '%s'.", match)
