Folder

Is ~/Library/WebKit safe to delete on a Mac?

Be careful with ~/Library/WebKit: it holds the website data of apps that embed web views, so deleting an app's folder can sign it out and erase its offline data, while folders of removed apps are safe to delete.

1 safe4 careful

updated read 3 minfor macOS 14 Sonoma and later

The short answer

  1. 01

    Careful. Each folder is one app's web view data: cookies, local storage, IndexedDB and caches, which Apple's WebKit saves to disk by default.

  2. 02

    Apps that show web content write it, such as Adobe Creative Cloud apps and other tools with built-in web pages, each in a folder named after its bundle identifier.

  3. 03

    What you lose: that app's web sessions and data saved by its web pages, which can sign you out or drop offline content.

  4. 04

    The check: du -sh ~/Library/WebKit/* | sort -h. Trash the folder of an app you removed; for an app you keep, quit it first and expect to sign in again.

See its real size on your Mac. Hoardless measures this folder and previews the delete.Download free trial

What is the ~/Library/WebKit folder?

~/Library/WebKit holds the website data of apps that show web content through Apple's WebKit. Apple's WKWebsiteDataStore reference says a data store manages cookies, disk and memory caches, and other types of data for a web view, and that web views use the default data store unless told otherwise, which saves website data persistently to disk.

Non-sandboxed apps that embed web views keep that data here, one folder per app named after its bundle identifier. You can see the layout with ls ~/Library/WebKit: each app folder usually holds a WebsiteData folder with subfolders such as LocalStorage, IndexedDB, MediaKeys and ResourceLoadStatistics.

What writes it and why does it grow?

Any app with built-in web pages: sign-in screens, help viewers, stores, dashboards and hybrid apps built on web views. Some vendors have several folders, one per helper app; Adobe Creative Cloud is a common example.

  • IndexedDB and local storage grow when an app's web content keeps offline data or large state.
  • Caches grow like any browser cache.
  • Leftovers: uninstalled apps leave their folder behind, and nothing removes it.

This is separate from cookies in ~/Library/HTTPStorages, which hold an app's own HTTP requests outside a web view.

How big does ~/Library/WebKit get?

No normal size is published. Check yours:

du -sh ~/Library/WebKit

Prints the total. Removes nothing.

du -sh ~/Library/WebKit/* | sort -h | tail -10

Lists the 10 largest app folders, largest last.

du -sh ~/Library/WebKit/*/WebsiteData/* 2>/dev/null | sort -h | tail -10

Shows which kind of web data is large, for example IndexedDB of one app.

Is it safe to delete ~/Library/WebKit?

For removed apps, yes. For apps you use, you trade space for sign-ins and offline data.

WhatVerdictWhat you lose
Folder of an app you uninstalledSafeNothing you use.
Folder of an app you use, app quitCarefulIts web sign-ins, web page settings and offline data.
A folder while its app is runningCarefulThe app is still writing to it. Quit first.
Top-level Databases and WebPushCarefulUndocumented WebKit data. Leave it.
The whole ~/Library/WebKit folderCarefulWeb data of every app at once: many sign-ins to redo.

How do I clear an app's WebKit data?

Look for the app's own option first, such as a sign-out or clear-data button in its settings.

The manual way:

  1. Quit the app and any of its helpers, or confirm it is uninstalled.
  2. In Finder, choose Go > Go to Folder and type ~/Library/WebKit.
  3. Drag that app's folder to the Trash.

In Terminal, through the Trash:

mv ~/Library/WebKit/com.example.App ~/.Trash/

Replace com.example.App with the folder name from the size list.

What Hoardless does: it adds each app's WebKit folder to that app's total in the Apps list, and its path table marks this folder as per-app web data that may sign you out. A folder you pick goes to the Trash in a Confirm-tier plan you read first, with an undo log.

What comes back and when?

An app recreates its folder the next time it shows web content. Sign-ins and offline data come back only after you sign in or the content downloads again. Folders of removed apps stay gone.

See an app's web data next to the rest of it

Hoardless groups each app's WebKit data with its HTTP storage, caches, logs, containers and saved state in the Apps list, so you can tell which app holds the space. Anything you pick goes to the Trash after a plan you confirm, with an undo log.

14-day full trial. macOS 14 or later.

Questions

What is inside a WebKit folder?

Usually a WebsiteData folder with subfolders such as LocalStorage, IndexedDB, MediaKeys and ResourceLoadStatistics. These are what web pages inside the app saved.

Will deleting ~/Library/WebKit break apps?

No app should stop working, but apps lose what their web content stored: sign-ins, preferences kept by web pages, and offline data. They rebuild it as you use them.

What are the Databases and WebPush folders?

They are WebKit's own folders at the top level, not an app's. Apple does not document them, so leave them alone.