What version of Spook are you using?
4.0.1
What version of Home Assistant are you using?
2025.9.4
The problem
so i trying to clean up my HA and when i had pfsense it showed up 5 times and each one added _2 _3 _4 _5 on all the entities... now i deleted them all.. as i want jsut 1
and i ran the orphan delete.. i deleted all the stastics.. and when i re added pfsense it adds everything with _5 on the end
i ran the orphan list it shows up 600 orphanes i try to re delete let it sit 10 min and do the list.. and it doesnt delete still over 600
i have the same issue on my main HA i have over 1500 orphans in the list even though i deleted them and of intergrations that been removed... now they dont show up in entites page etc.. but HA still keeping a record, and spook isnt able to remove them
so i cant add pfsense it will add pfsense_5
its doing this on intergrations i removed like unraid etc... so its some how keeping the entities names and not truly deleting them
it used to work in the past but now i noticing it not deleting i just dont remember when sometime last year i know worked
ive tried delete then waited 10-15 min then rebooted home assistant... then did the delete orphanes again let it sit 10 min do a reboot... and when i did the list it didnt delete any.. and when i add pfsense it then does pfsense_5 so its not truly deleting the orphoaned files
what i also noticed is if i do the orphan delete and wait 24 hours..
and i do the list they still there
but when i add a new pfsense instance and call it "router" HA re adds the pfsense as "mikes router" and ist saving all the _4 _5 its not trully erasing the orphanes not truly purging..
is there another option to purge is there a database i can just clean and when you restart HA it re adds all the entites?
i also tried the purge.recorder and entities that still doesnt help the entities stay in the list of orphanes and when i re add a pfsense or unraid it keeps adding _4 _5 and i cant truly purge out any entities really even if they dont show up under entity in the purge entties... they still there in list orphanes...
clearing cache using different browser doesnt help
i did some google searchs and the AI genertrated to say look in the
entity.core.registry file
and the entitys are in there
like
{"aliases":[],"area_id":null,"categories":{},"config_entry_id":null,"config_subentry_id":null,"created_at":"2025-06-04T14:39:09.978054+00:00","device_class":null,"disabled_by":"integration","disabled_by_undefined":false,"entity_id":"sensor.mitch_s_router_memory_buffers_used","hidden_by":null,"hidden_by_undefined":false,"icon":null,"id":"d6100af5e188130b881dff259b6ac7fe","labels":[],"modified_at":"2025-10-01T13:37:30.033044+00:00","name":null,"options":{},"options_undefined":false,"orphaned_timestamp":1759325851.0914936,"platform":"pfsense","unique_id":"71de8ceffae54fefee41_telemetry_mbuf_used"},
there is more then 999
when i search for "mitchs_router"
so i dunno how i can purge or use spook to delete them all not without editing and my other ha has more then 1500
so i not sure how i can get rid of them.
even when like unraid and pfsense intergrations been uninstalled
Anything in the logs? Paste it here!
i also started a topic in Home assistant, and tried a script that didnt work either.. and now spook doesnt show orphaned files..
but the core entity registery file still shows 999+ orphaned files,, that it can not be deleted and is messing up creating entities
[](url)https://community.home-assistant.io/t/how-do-you-purge-entiy-core-registry-file-when-spook-and-purge-dont-work/936419/12
from opening an issue on the core github and home assistant community page.. and getting told its intergration problem.. and not a home assistant issue it seems..
it be nice if Spook can auto delete all the "deleted entities" under core.entities.registry file... since it seems the intergrations use that to append entities names.. so if there is 4 other with the name it just creates a 5th with _5 with the extentsion and database keeps getting bigger like bloated windows... so be nice if spook can when you choose deleted orphaned files it would also wipe out the core.regirstry. entities file ...
maybe change it from a Bug to a Feature Request to be able to purge the core registry file of deleted entities that are orphaned and bugger up re adding devices
What version of Spook are you using?
4.0.1
What version of Home Assistant are you using?
2025.9.4
The problem
so i trying to clean up my HA and when i had pfsense it showed up 5 times and each one added _2 _3 _4 _5 on all the entities... now i deleted them all.. as i want jsut 1
and i ran the orphan delete.. i deleted all the stastics.. and when i re added pfsense it adds everything with _5 on the end
i ran the orphan list it shows up 600 orphanes i try to re delete let it sit 10 min and do the list.. and it doesnt delete still over 600
i have the same issue on my main HA i have over 1500 orphans in the list even though i deleted them and of intergrations that been removed... now they dont show up in entites page etc.. but HA still keeping a record, and spook isnt able to remove them
so i cant add pfsense it will add pfsense_5
its doing this on intergrations i removed like unraid etc... so its some how keeping the entities names and not truly deleting them
it used to work in the past but now i noticing it not deleting i just dont remember when sometime last year i know worked
ive tried delete then waited 10-15 min then rebooted home assistant... then did the delete orphanes again let it sit 10 min do a reboot... and when i did the list it didnt delete any.. and when i add pfsense it then does pfsense_5 so its not truly deleting the orphoaned files
what i also noticed is if i do the orphan delete and wait 24 hours..
and i do the list they still there
but when i add a new pfsense instance and call it "router" HA re adds the pfsense as "mikes router" and ist saving all the _4 _5 its not trully erasing the orphanes not truly purging..
is there another option to purge is there a database i can just clean and when you restart HA it re adds all the entites?
i also tried the purge.recorder and entities that still doesnt help the entities stay in the list of orphanes and when i re add a pfsense or unraid it keeps adding _4 _5 and i cant truly purge out any entities really even if they dont show up under entity in the purge entties... they still there in list orphanes...
clearing cache using different browser doesnt help
i did some google searchs and the AI genertrated to say look in the
entity.core.registry file
and the entitys are in there
like
there is more then 999
when i search for "mitchs_router"
so i dunno how i can purge or use spook to delete them all not without editing and my other ha has more then 1500
so i not sure how i can get rid of them.
even when like unraid and pfsense intergrations been uninstalled
Anything in the logs? Paste it here!
from opening an issue on the core github and home assistant community page.. and getting told its intergration problem.. and not a home assistant issue it seems..
it be nice if Spook can auto delete all the "deleted entities" under core.entities.registry file... since it seems the intergrations use that to append entities names.. so if there is 4 other with the name it just creates a 5th with _5 with the extentsion and database keeps getting bigger like bloated windows... so be nice if spook can when you choose deleted orphaned files it would also wipe out the core.regirstry. entities file ...
maybe change it from a Bug to a Feature Request to be able to purge the core registry file of deleted entities that are orphaned and bugger up re adding devices