如何清除在 linux 上使用 google chrome 时设置的 cookie

how can one clear the cookies that are set while using google chrome on linux

在 linux(Ubuntu 19.04) 上有一个 sqlite 数据库,通常在这里:

.config/google-chrome/Default/Cookies

删除会清除一些 cookie。但是,我还想清除在 chrome 的活动会话中设置和使用的 cookie,即 运行。

cookie 是完全写入磁盘还是仅在 chrome 关闭后才写入磁盘?

如果 cookie 没有写入磁盘。有没有办法挂接到 运行 会话的开发工具并以编程方式清除 cookie?

谢谢

您可以从 应用程序 面板清除 cookie。参见 delete cookies. See also the clear site data 命令。

您可以使用 page.deleteCookie 以编程方式清除 Puppeteer 中的 cookie。