# Cursor deleted my file

**URL:** <https://forum.cursor.com/t/cursor-deleted-my-file/45020>\
**Category:** Bug Reports\
**Created:** [January 26, 2025, 4:38pm UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020 "2025-01-26T16:38:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Idontknow](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@Idontknow](https://forum.cursor.com/u/Idontknow)\
**Post date:** [January 26, 2025, 4:38pm UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/1 "2025-01-26T16:38:05Z")

</div>

![image](https://us1.discourse-cdn.com/cursor1/original/3X/3/2/329662722454a50fedc53444f42aaa1b1665b6de.png)

What can be done to avoid this problem? Hours of work just wasted, and how do I recover my deleted file.

---

<div class="post-metadata">

**Author:** ![ViezeVingertjes](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/viezevingertjes/32/18540_2.png) [@ViezeVingertjes](https://forum.cursor.com/u/ViezeVingertjes)\
**Post date:** [January 26, 2025, 6:20pm UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/2 "2025-01-26T18:20:34Z")

</div>

![image](https://us1.discourse-cdn.com/cursor1/original/3X/3/f/3f8b8518cd91a4310b726d02b4980bcda9dfec3d.png)

The bottom setting probably could work or by utilizing the protections for Yolo mode. You can probably just click on any of the prior responses which state “RESTORE” next to it too.

Other than that, commit to git often, so you have a save version remote. Dont only keep it locally, ive seen Cursor popping the head commit and making it dissapear too.

---

<div class="post-metadata">

**Author:** ![alish](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@alish](https://forum.cursor.com/u/alish)\
**Post date:** [March 5, 2025, 8:23am UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/4 "2025-03-05T08:23:05Z")

</div>

Jesus Christ, I got used to Cursor deleting my files when using their checkpoints but it did it again and my GIT FILES in a 100loc+ project. PLEASE FIX THIS. I created an account just to say this.

---

<div class="post-metadata">

**Author:** ![minoturk](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@minoturk](https://forum.cursor.com/u/minoturk)\
**Post date:** [July 25, 2025, 12:18am UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/5 "2025-07-25T00:18:26Z")

</div>

It is still happening, I have lost many documents. Cursor deletes the documents (.txt, .py, and which file type you edit) when editing. So I have to copy each document to a different folder, then put the original file back into the working folder when its deleted and repeat this process for each edit. I’m tired of this. I used to use a cursor to reduce my workload, but now it’s causing me extra workload, not to mention the deleted documents and wasted effort, time, and tokens.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 25, 2025, 5:18am UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/6 "2025-07-25T05:18:51Z")

</div>

Hey, which version of Cursor are you using?

---

<div class="post-metadata">

**Author:** ![AlanShah](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/alanshah/32/72979_2.png) [@AlanShah](https://forum.cursor.com/u/AlanShah)\
**Post date:** [July 25, 2025, 5:24am UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/7 "2025-07-25T05:24:21Z")

</div>

This worked for me :

1-Open your project in Cursor,press `Command + Shift + P` (Mac) or `Ctrl + Shift + P` (Windows),

2-type “Local History,” and then search for the file name to see if you can restore it from a previous version

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/4/8463d87ab8406d466987397d67a843ead7df091f.png)  
The original project file is the one listed without a directory path

And The Result :

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/9/6/9658d750f7e4f6362054e66d7eb7307c313ac847.png)

---

<div class="post-metadata">

**Author:** ![minoturk](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@minoturk](https://forum.cursor.com/u/minoturk)\
**Post date:** [July 25, 2025, 6:36am UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/8 "2025-07-25T06:36:26Z")

</div>

I updated before seeing the message, now it’s Version: 1.3.2 (user setup) VSCode Version: 1.99.3. I haven’t tried editing again yet, I’ll update my post in a few hours if there are any changes. @AlanShah’s solution worked for me, thank you.

---

<div class="post-metadata">

**Author:** ![whatever2](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/whatever2/32/73151_2.png) [@whatever2](https://forum.cursor.com/u/whatever2)\
**Post date:** [July 25, 2025, 7:58pm UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/9 "2025-07-25T19:58:39Z")

</div>

Thanks a lot. Cursor deleted my entire project when I reverted to an earlier message in the chat and this saved me.

---

<div class="post-metadata">

**Author:** ![xelander](https://avatars.discourse-cdn.com/v4/letter/x/9fc29f/32.png) [@xelander](https://forum.cursor.com/u/xelander)\
**Post date:** [October 2, 2025, 5:10pm UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/10 "2025-10-02T17:10:58Z")

</div>

Thank you so much, this saved me! 🫶

---

<div class="post-metadata">

**Author:** ![MZi](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@MZi](https://forum.cursor.com/u/MZi)\
**Post date:** [October 30, 2025, 4:03pm UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/11 "2025-10-30T16:03:27Z")

</div>

Omg, this saved me so much time! I cant believe cursor is just randomly allowed to delete files

---

<div class="post-metadata">

**Author:** ![Aditya\_Dhande](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Aditya\_Dhande](https://forum.cursor.com/u/Aditya_Dhande)\
**Post date:** [December 17, 2025, 12:04pm UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/12 "2025-12-17T12:04:11Z")

</div>

I built a cursor extension for this exact problem : [Open VSX Registry](https://open-vsx.org/extension/AdityaDhande/vibe-check)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [January 8, 2026, 12:04pm UTC](https://forum.cursor.com/t/cursor-deleted-my-file/45020/13 "2026-01-08T12:04:27Z")

</div>

Closed on January 8, 2026, 12:04pm UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
