title: How to clear specific cookies using Flask
body: <p>I create cookies with Java Script and refresh the page like so...</p>
  
  <pre><code>document.cookie = "driveValue=" + "Runner"
  document.cookie = "cachedOffset=" + "56"
  location.reload()
  </code></pre>
  
  <p>I then retrieve a dictionary of the cookies with Python Flask showed below...</p>
  
  <pre><code>@app.route('/config', methods=('GET', 'POST'))
  def config():
  cookie = request.cookies
  cookieItems = cookie.items()
  </code></pre>
  
  <p>Now that I have a dictionary mapping the name to the values, i want to clear those specific cookies (or change the value to an empty string). How do I go about doing this. So far, I have tried this example listed below...</p>
  
  <pre><code>resp = make_response(render_template('master.html', form=form, cookieItems=cookieItems)
  resp.set_cookie("cachedOffset", "", expires=0)
  resp.set_cookie("driveValue", "", expires=0)
  return resp
  </code></pre>
  
  <p>I thought this would work but it is not changing any of the cookies to an empty space.</p>
  
  <p>Here is where the cookies are located that I would like to change. <a href="https://i.stack.imgur.com/7ob46.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7ob46.png" alt="enter image description here"></a></p>