'Remove an option.'

def remove_option(self, section, option):

    if ((not section) or (section == DEFAULTSECT)):
        sectdict = self._defaults
    else:
        try:
            sectdict = self._sections[section]
        except KeyError:
            raise NoSectionError(section)
    option = self.optionxform(option)
    existed = (option in sectdict)
    if existed:
        del sectdict[option]
    return existed
