code: def remove_option(self, section, option):
          
          if not section or section == self.default_section:
              sectdict = self._defaults
          else:
              try:
                  sectdict = self._sections[section]
              except KeyError:
                  raise from_none(NoSectionError(section))
          option = self.optionxform(option)
          existed = option in sectdict
          if existed:
              del sectdict[option]
          return existed
docs: Remove an option.