Disable data flash logs

Hi all

Wondering if there is a simple way of disabling the data flash logs being created or else clearing them via a lua script? Perhaps being able to access the autopilot filesystem via lua and clearing the directory?

I am assuming this won’t affect the Tlog being written by the machine/GCS?

LOG_BACKEND_TYPE,0

Thanks @dkemxr much appreciated!