On macOS, you may discover the following folder with many GBs of data
~/Library/Application Support/Google/Chrome/Default/Service Worker
.
In order to fix this, you need to
- Stop Service workers
- Uninstall Service Workers
- Clear the cache
Keep in mind that you may need to do this for every profile that you use.
- Navigate to chrome://serviceworker-internals/
- Open Developer Tools and go to the Console tab
- Write
'allow paste'
in the console - Paste this snippet
$$('.unregister').forEach(b => b.click())
If you just unregister the workers, the cache remains on the drive. If you just delete the cache, without first uninstalling the service worker, nothing will happen. You must first uninstall all service workers.
To delete the cache, after service workers are uninstalled
Settings
-> Privacy and security
-> Clear browsing data
-> All times
-> Cookies and other site data