@app.route('/cookies/delete')
def delete_cookies():
 cookies = dict(request.args.items())
 r = app.make_response(redirect(url_for('view_cookies')))
 for (key, value) in cookies.items():
  r.delete_cookie(key=key)
 return r

@ app . route ( '/cookies/delete' ) def delete_cookies ( ) : cookies = dict ( request . args . items ( ) ) r = app . make_response ( redirect ( url_for ( 'view_cookies' ) ) ) for ( key , value ) in cookies . items ( ) : r . delete_cookie ( key = key ) return r
deletes cookie(s) as provided by the query string and redirects to cookie list .