Dan
Dan

Reputation: 2489

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

On linux(Ubuntu 19.04) there is a sqlite database which lives here usually:

.config/google-chrome/Default/Cookies

Removing that clears some of the cookies. However, i would like to also clear the cookies which are set and used in the active session of chrome that is running.

Are the cookies being written to disk at all or do they only get written to disk after chrome is closed?

If the cookies are not being written to disk. Is there a way to hook into devtools of the running session and clear the cookies programmatically?

Thanks

Upvotes: 0

Views: 1197

Answers (1)

Kayce Basques
Kayce Basques

Reputation: 25897

You can clear cookies from the Application panel. See delete cookies. See also the clear site data command.

You can programmatically clear cookies from Puppeteer with page.deleteCookie.

Upvotes: 1

Related Questions