parameters: (cookiejar, name, domain=None, path=None)
docstring: Unsets a cookie by name, by default over all domains and paths.
  
  
  
      Wraps CookieJar.clear(), is O(n).
docstring_summary: Unsets a cookie by name, by default over all domains and paths.
docstring_tokens: Unsets a cookie by name by default over all domains and paths .
function: def remove_cookie_by_name(cookiejar, name, domain=None, path=None):
  
      """Unsets a cookie by name, by default over all domains and paths.
  
  
  
      Wraps CookieJar.clear(), is O(n).
  
      """
  
      clearables = []
  
      for cookie in cookiejar:
  
          if cookie.name != name:
  
              continue
  
          if domain is not None and domain != cookie.domain:
  
              continue
  
          if path is not None and path != cookie.path:
  
              continue
  
          clearables.append((cookie.domain, cookie.path, cookie.name))
  
  
  
      for domain, path, name in clearables:
  
          cookiejar.clear(domain, path, name)
function_tokens: def remove_cookie_by_name ( cookiejar , name , domain = None , path = None ) : clearables = [ ] for cookie in cookiejar : if cookie . name != name : continue if domain is not None and domain != cookie . domain : continue if path is not None and path != cookie . path : continue clearables . append ( ( cookie . domain , cookie . path , cookie . name ) ) for domain , path , name in clearables : cookiejar . clear ( domain , path , name )