# Can't remove the program once copied into the EV3

**URL:** https://forum.makecode.com/t/cant-remove-the-program-once-copied-into-the-ev3/564
**Category:** EV3
**Created:** [September 25, 2019, 12:48am UTC](https://forum.makecode.com/t/cant-remove-the-program-once-copied-into-the-ev3/564 "2019-09-25T00:48:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jeff](https://forum.makecode.com/u/Jeff)
#### Post date: [September 25, 2019, 12:48am UTC](https://forum.makecode.com/t/cant-remove-the-program-once-copied-into-the-ev3/564/1 "2019-09-25T00:48:20Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jeff](https://forum.makecode.com/u/Jeff)
#### Post date: [September 25, 2019, 3:01am UTC](https://forum.makecode.com/t/cant-remove-the-program-once-copied-into-the-ev3/564/2 "2019-09-25T03:01:15Z")

</div>

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

---

<div class="post-metadata">

### Author: ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)
#### Post date: [September 25, 2019, 5:30pm UTC](https://forum.makecode.com/t/cant-remove-the-program-once-copied-into-the-ev3/564/3 "2019-09-25T17:30:09Z")

</div>

There is a different workaround here [https://makecode.mindstorms.com/fll#why-can-t-i-delete-my-program-uf2-files-from-the-brick-](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.

---

<div class="post-metadata">

### Author: ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)
#### Post date: [September 25, 2019, 5:30pm UTC](https://forum.makecode.com/t/cant-remove-the-program-once-copied-into-the-ev3/564/4 "2019-09-25T17:30:55Z")

</div>

(of course if you’re already working on a separate uploader app, you may as well add “Wipe EV3” button 🙂 )

---

<div class="post-metadata">

### Author: ![Jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jeff](https://forum.makecode.com/u/Jeff)
#### Post date: [September 26, 2019, 4:05pm UTC](https://forum.makecode.com/t/cant-remove-the-program-once-copied-into-the-ev3/564/5 "2019-09-26T16:05:27Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)
#### Post date: [September 26, 2019, 4:20pm UTC](https://forum.makecode.com/t/cant-remove-the-program-once-copied-into-the-ev3/564/6 "2019-09-26T16:20:11Z")

</div>

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](https://github.com/microsoft/pxt-ev3/blob/master/editor/wrap.ts)

---

<div class="post-metadata">

### Author: ![Walt.White](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/walt.white/32/424_2.png) [@Walt.White](https://forum.makecode.com/u/Walt.White)
#### Post date: [October 23, 2019, 8:09pm UTC](https://forum.makecode.com/t/cant-remove-the-program-once-copied-into-the-ev3/564/7 "2019-10-23T20:09:12Z")

</div>

Thanks for a really useful tool. I volunteer in a classroom using the EV3. We recently started using MakeCode, but I didn’t like having to use the Mindstorms IDE to reflash back one version then use the EV3 Device Manager (DM) to reflash back to v1.10E. It’s annoying that if the DM finds v1.10E it won’t give you a chance to reflash anyway.  
And I need to start each trimester group of students with a clean brick.
