# Code deleted

**URL:** <https://forum.makecode.com/t/code-deleted/28366>\
**Category:** Help\
**Created:** [April 22, 2024, 4:51am UTC](https://forum.makecode.com/t/code-deleted/28366 "2024-04-22T04:51:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![IMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/imakecode/32/17303_2.png) [@IMakeCode](https://forum.makecode.com/u/IMakeCode)\
**Post date:** [April 22, 2024, 4:51am UTC](https://forum.makecode.com/t/code-deleted/28366/1 "2024-04-22T04:51:31Z")

</div>

I closed the project(not the tab) and reopened it because the project wasn’t autosaving like usual. When I reopened the project, almost half of the code was deleted. What do I do?

---

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [April 22, 2024, 11:14pm UTC](https://forum.makecode.com/t/code-deleted/28366/2 "2024-04-22T23:14:18Z")

</div>

The autosave does not work sometimes, so your code got deleted. As for getting it back you could look for copies but usually when this happens it is impossible to reverse. In the future my suggestion is to every time you are done with a great portion of code press the share button. This should give you a link that you can send to yourself. That way if your code is ever deleted you can click on the link click “Edit code” and a new project will be created containing all the code that you created before sharing. You can update the link by re-sharing.

---

<div class="post-metadata">

**Author:** ![sillysnowi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sillysnowi/32/14304_2.png) [@sillysnowi](https://forum.makecode.com/u/sillysnowi)\
**Post date:** [April 22, 2024, 11:18pm UTC](https://forum.makecode.com/t/code-deleted/28366/3 "2024-04-22T23:18:08Z")

</div>

Unless you’ve saved the project through means of downloading, sharing the link, or a GitHub repo, it is not possible to recover a project that has been deleted or bugged out in this case.

---

<div class="post-metadata">

**Author:** ![IMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/imakecode/32/17303_2.png) [@IMakeCode](https://forum.makecode.com/u/IMakeCode)\
**Post date:** [April 23, 2024, 3:59am UTC](https://forum.makecode.com/t/code-deleted/28366/4 "2024-04-23T03:59:59Z")

</div>

About that…  
I did save the project when it stopped autosaving, but I did it via the share button without thinking about copying the link. Could I possibly recover that?

---

<div class="post-metadata">

**Author:** ![sillysnowi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sillysnowi/32/14304_2.png) [@sillysnowi](https://forum.makecode.com/u/sillysnowi)\
**Post date:** [April 23, 2024, 4:06am UTC](https://forum.makecode.com/t/code-deleted/28366/5 "2024-04-23T04:06:57Z")

</div>

I don’t think that’s possible, sorry.
