Once I copy a file over to the EV3 either from Explorer or by clicking the download button. I can’t delete it. The only way I’ve found to get rid of the uf2 programs is to force a firmware update wiping the entire brick. Anyone to delete files easily?
Well I came up with my own solution for now which was to create a C# app using Lego.Ev3.Desktop NuGet and Brick.SystemCommand.DeleteFileAsync("…/prjs/BrkProg_SAVE/‘filename’"). Much quicker than a FW update
There is a different workaround here https://makecode.mindstorms.com/fll#why-can-t-i-delete-my-program-uf2-files-from-the-brick-
I don’t think we’ll have a real fix anytime soon.
(of course if you’re already working on a separate uploader app, you may as well add “Wipe EV3” button )
Yes I’ll have something to delete files. One issue I found is that, the library that I’m using doesn’t have a way to List or Get the files in a given directory nor does the Delete call allow for wiled cards. There must be a command since the LME software can read the files. I’ll need to figure out what that command is and then extend the library. I also don’t see a command to launch a program so will also need to figure that out.
There is code to list and run here but we don’t use it since we don’t currently have direct access to the hardware https://github.com/microsoft/pxt-ev3/blob/master/editor/wrap.ts