Automation disappeared from YAML file but can't delete it from UI

Hello,
I have discovered an issue with an automation which suddenly disappeared from my automations.yaml but “freezed” in the UI editor (I can’t delete, edit or view it, but it is still there. When I try to view, edit or delete it, the error “only automations in automations.yaml can be edited” appears). I haven’t edited anything in the YAML, only UI.
How can I delete it now?

Thanks in advance
Aaron

Have you reloaded the yaml configuration for automations (Developer tools | YAML)?

@Stiltjack: yes, but it didn’t fix my issue. I also restarted HA and cleared my browser cache, but it didn’t help

I’m marking this as solved because the automation that was “stuck” suddenly disappeared after multiple restarts of HA that were needed because of other config changes and some updates