Deleted Entities Still Show in Dev Tools

I have a large number of entities, including automations and scripts, that were deleted a long time ago but still listed in Developer Tools > States as “Unavailable”.

How can these be deleted fully?