How to delete a log file?

I use

notify:
   - platform: file
     name: my_log
     filename: my-log.log

as a way to debug things.

Is there a service to delete the log file using an automation/script.

I’m think there is because I am sure I used to to do this but I can’t find how to do it anywhere now.

Thanks

You could use a shell command.

Read Option to purge the log

1 Like

That’ll be it.
Thanks.