Input_boolean throwing error after being deleted

Hello. I have a bit of knowledge with home assistant but I’m unable to work this error out.

I deleted the input_boolean from the front end and I’m now getting the error below. I have a mixture of node red and automations which I have triple checked for this entry and nothing is using it. I’ve also searched through the files including the hidden ones and ones in restricted folders. I can’t find a reference or the name of it anywhere. Can anyone advise me what I’m doing wrong or where else this may be being referenced from.

Unable to find referenced entities input_boolean.presence_home_david or it is/they are currently not available

Thank you.