If you have a generator that has been saved at least once, you can open its settings and choose to delete the generator. You then need to confirm. If you do, it says the generator has been deleted, and it will take you to the homepage.

But then if there are unsaved changes, it has that warning about leaving the page. But As the user has confirmed they want to delete the generator, saving doesn’t even mean anything anymore anyway. If they cancel and stay on the page, they can continue to edit and even save.

When they save, though the save fails and the preview shows a warning like: (⊙.⊙) sorry, we cannot find a generator called curxte4k6u! and it never comes out of the saving state.

It’s all a bit pointless and there’s no point in ever staying. I’d say the expected behaviour is that after it’s been deleted it shouldn’t care if there are unsaved changes anymore, and just let the redirect to the homepage happen as expected–without that confirmation popup.