简体   繁体   中英

In what directory lies the local storage of a webview on macOS?

In other words how can I delete an app's webview data without having access to the web developer tools of the webview? Where is it stored?

Searching through my ~/Library folder I stumbled upon it:

A webview of an application with the package id your.package.id will store localstorage, cookies, etc. in /Users/your-username/Library/WebKit/your.package.id (where your-username needs to be replaced by whatever your username is ;-).

So deleting this directory will clear all data created by the webview.

I run macOS Mojave, but my guess is this won't change often.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM