# I've been working on a typescript project for some time, but I accidentally clicked on main.py and all my code has been lost

**URL:** <https://forum.makecode.com/t/ive-been-working-on-a-typescript-project-for-some-time-but-i-accidentally-clicked-on-main-py-and-all-my-code-has-been-lost/21889>\
**Category:** Arcade\
**Created:** [August 17, 2023, 4:12pm UTC](https://forum.makecode.com/t/ive-been-working-on-a-typescript-project-for-some-time-but-i-accidentally-clicked-on-main-py-and-all-my-code-has-been-lost/21889 "2023-08-17T16:12:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mineninja77777](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mineninja77777/32/8130_2.png) [@mineninja77777](https://forum.makecode.com/u/mineninja77777)\
**Post date:** [August 17, 2023, 4:12pm UTC](https://forum.makecode.com/t/ive-been-working-on-a-typescript-project-for-some-time-but-i-accidentally-clicked-on-main-py-and-all-my-code-has-been-lost/21889/1 "2023-08-17T16:12:50Z")

</div>

Is there a way to recover it?

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [August 17, 2023, 4:24pm UTC](https://forum.makecode.com/t/ive-been-working-on-a-typescript-project-for-some-time-but-i-accidentally-clicked-on-main-py-and-all-my-code-has-been-lost/21889/2 "2023-08-17T16:24:08Z")

</div>

Unfortunately the best way is to make backups of your code…

---

<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:** [August 17, 2023, 5:20pm UTC](https://forum.makecode.com/t/ive-been-working-on-a-typescript-project-for-some-time-but-i-accidentally-clicked-on-main-py-and-all-my-code-has-been-lost/21889/3 "2023-08-17T17:20:32Z")

</div>

Hey, sorry you ran into this issue! Two questions to start with

- Did you happen to be signed in via [https://arcade.makecode.com/identity/sign-in](https://arcade.makecode.com/identity/sign-in) when creating the project?
- Have you ever used any of the features relating to exporting the project (created a shared version, downloaded to a device via the download button, created a png of it, etc)
