Ip_bans deletion via automation

Is it possible to automate the deletion of the ip_bans file? I’d like to create a UI button or a time based automation to delete this file.

Thank you.

Deleting ip_bans.yaml requires a restart of HA for it to take effect. So I doubt it. Anyway, if someone has a solution, I would like to know too.

@francisp You can automate the reboot of HA by calling homeassistant.restart service

@tom_l thank you, same reason why I’m looking for this - I’ll track this FR.

I know, but it is not always wanted.
Seems I voted for that FR already, just forgot about it.

1 Like