code: def remove(name, rc_file='~/.odoorpcrc'):
      
      conf = ConfigParser()
      conf.read([os.path.expanduser(rc_file)])
      if not conf.has_section(name):
          raise ValueError(
              "'%s' session does not exist in %s" % (name, rc_file))
      conf.remove_section(name)
      with open(os.path.expanduser(rc_file), 'wb') as file_:
          conf.write(file_)
docs: Remove the session configuration identified by `name`
      from the `rc_file` file.
  
      >>> import odoorpc
      >>> odoorpc.session.remove('foo')     # doctest: +SKIP
  
      .. doctest::
          :hide:
  
          >>> import odoorpc
          >>> session = '%s_session' % DB
          >>> odoorpc.session.remove(session)
  
      :raise: `ValueError` (wrong session name)