# Unregister service workers in Safari

> Learn how to unregister a service worker in Safari on macOS, where there is no DevTools button, by running navigator.serviceWorker.getRegistrations in console.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2024-03-31 | Topics: [Web Platform](https://flaviocopes.com/tags/platform/), [JavaScript](https://flaviocopes.com/tags/js/), [Mac](https://flaviocopes.com/tags/mac/) | Canonical: https://flaviocopes.com/unregister-service-workers-in-safari/

You can easily unregister a [service worker](https://flaviocopes.com/service-workers/) in Chrome, from the Application tab in the [DevTools](https://flaviocopes.com/browser-dev-tools/), 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](https://flaviocopes.com/console-api/):

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