Automation in GUI but not in automation.yaml

I have an automation that I deleted that still shows up in the GUI. When I try to delete it again, I get the message “Only automation in automation.yaml can be deleted.” If I look in the automations.yaml file, the automation in question is not there, yet it still shows up in the list of automations in the GUI. If I try to view the automation in the GUI, I get the message “Only automations in automations.yaml are editable.”

Where does the GUI get the list of automations if not from the automations.yaml, and how can I delete this automation from the list in the GUI?