Skip to content
FLAVIO COPES
flaviocopes.com
2026

Unregister service workers in Safari

~~~

You can easily unregister a service worker in Chrome, from the Application tab in the DevTools, but in Safari on macOS there’s no button to do so.

So to unregister a service worker, run this JS in the browser console:

navigator.serviceWorker.getRegistrations()
  .then(registrations => {
    registrations.map(r => {
      r.unregister()
    }) 
  })
~~~

Related posts about platform: