PWA & Service Workers: Unregister service workers in Safari - platform - js - mac

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


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()
    }) 
  })

Lessons in this unit:

0: Introduction
1: Progressive Web Apps
2: Service Workers
3: Cache API
4: Making a website work offline
5: Notifications API
6: Push API
7: ▶︎ Unregister service workers in Safari - platform - js - mac