Deleted automations persists but"unavailable" in the web GUI/Lovelace

You didn’t install the compact-custom-header card did you?

This is the only thing I can think of (other than .storage corruption) that would prevent you editing the GUI.

Or did you enable YAML mode?

https://www.home-assistant.io/lovelace/yaml-mode/