Adding SD card erase task after Crash Check trigger

Basically, I would like to know if it is possible to add a task to force erase the SD card content after crash check is triggered and how could I do it. Thank’s in advance

You could use a lua script to do that for you.

Nice. I have just started exploring the “ardupilot world”… sorry if it was a noob question. I’ll investigate that. Thank you

I’m curious about the use case for this. Sometimes Crash Check can be triggered for a rather benign reason and you would want the log.