unregisterAllSWs = async () => {
  await executeAsyncAndCatch(async (cb) => {
    try {
      const regs = await navigator.serviceWorker.getRegistrations();
      for (const reg of regs) {
        await reg.unregister();
      }
      cb();
    } catch (error) {
      cb({error: error.stack});
    }
  });
}
Unregisters any active SWs so the next page load can start clean.
Note: a new page load is needed before controlling SWs stop being active.