# My code randomly deleted itself

**URL:** https://forum.makecode.com/t/my-code-randomly-deleted-itself/39339
**Category:** Help
**Created:** [September 18, 2025, 4:03pm UTC](https://forum.makecode.com/t/my-code-randomly-deleted-itself/39339 "2025-09-18T16:03:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![AlexWuzHereXD](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@AlexWuzHereXD](https://forum.makecode.com/u/AlexWuzHereXD)
#### Post date: [September 18, 2025, 4:03pm UTC](https://forum.makecode.com/t/my-code-randomly-deleted-itself/39339/1 "2025-09-18T16:03:08Z")

</div>

![Screenshot 2025-09-18 11.21.51 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/d/7d9424706e65218500042b37492a49f417ecc2e4.png)okay so, Today I went to go to my game I’ve been coding to see all of the “Tile” blocks were broken Example: Set sprite on top of fire tile →Set sprite on top of (Null) Tile, in the image you can see what happened, heck I went back and reloaded a old version and it Also Broke, Please help.

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [September 18, 2025, 5:31pm UTC](https://forum.makecode.com/t/my-code-randomly-deleted-itself/39339/2 "2025-09-18T17:31:54Z")

</div>

I think this happens when you open one project with tiles, leave, and open another project. Now that it’s broken, I don’t think you can fix it just by reloading, but if you close makecode and open it again when you move from one project to another, I have found that this issue doesn’t happen. Currently it’s a very mysterious Makecode bug.  
@MakeCode do y’all know why this happens?

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [September 18, 2025, 5:34pm UTC](https://forum.makecode.com/t/my-code-randomly-deleted-itself/39339/3 "2025-09-18T17:34:51Z")

</div>

We’ve seen this issue before (even on stream just yesterday) and are trying to get consistent ways to reproduce it – will try what you mentioned woofwoof but we’ve seen it with only the one project as well.

@AlexWuzHereXD Could you check the version history (it’s in the cogwheel) on your project? Hopefully (usually) a previous version will have the assets. Sorry this happened!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/8/88bc213761a299b54d46117d89ec6435ae01e9b0.png)

---

<div class="post-metadata">

### Author: ![AlexWuzHereXD](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@AlexWuzHereXD](https://forum.makecode.com/u/AlexWuzHereXD)
#### Post date: [September 18, 2025, 5:34pm UTC](https://forum.makecode.com/t/my-code-randomly-deleted-itself/39339/4 "2025-09-18T17:34:57Z")

</div>

![Screenshot 2025-09-18 12.41.13 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/b/d/bd508a38a1b3c88dd5ba1665b3bfb1b295e021a1.png)

 ![Screenshot 2025-09-18 12.41.04 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/f/2/f22aadc619dc8f6cc9107a570c07cf8944149bec.png)Heres an example, Say I had a bunch of “If tile” blocks, when I reload the code it’d go blank

---

<div class="post-metadata">

### Author: ![AlexWuzHereXD](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@AlexWuzHereXD](https://forum.makecode.com/u/AlexWuzHereXD)
#### Post date: [September 19, 2025, 7:13pm UTC](https://forum.makecode.com/t/my-code-randomly-deleted-itself/39339/5 "2025-09-19T19:13:38Z")

</div>

ive done this before, while yes it works it also just breaks like a day later

---

<div class="post-metadata">

### Author: ![Green\_Lizard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/green_lizard/32/33280_2.png) [@Green\_Lizard](https://forum.makecode.com/u/Green_Lizard)
#### Post date: [September 23, 2025, 4:50pm UTC](https://forum.makecode.com/t/my-code-randomly-deleted-itself/39339/6 "2025-09-23T16:50:39Z")

</div>

Half of my projects I’ve put hours into have been ruined and its making me so mad
