WTH can’t we delete old, unused unavailable entities etc. In an easy way, like a delete button? just adding stuff and not deleting old entities is driving me mad. Especially because Apple finds the old stuff and adds it to Home kit with no way to delete it there. so you’re stuck with junk in HA and HK. digging trough a database is a work around. When you delete something by accident , you can always add it again.
The Spook integration includes commands for deleting orphan entities in bulk.
But as far as your WTH goes, there are several others along the same lines with lots of votes already - you might be better doing a search and adding your vote there.
Closed as a duplicate. Please search the category before posting. You can vote and comment here: WTH there isn’t a System Cleanup and/or here: WTH missing entity repair items