How to automatically clean binaryData in self-hosted n8n? (tip for manually delete binaryData inside)

I know how to make a shedule trigger, but how to make such an action via command node ? Is it the same principle as I described above? So if I know where the folder is, I execute the command as above to execute the delete and everything will work without going to the console?