Disallow cursor to delete files automatically

I confirm this pattern, happens every time, easy to reproduce!

Just this afternoon I’ve had to experience this situation multiple time which was very scary at first since I thought I had lost my code!!! I was able to recover it from the wastebasket.

In my view this is a priority fix!! Thanks

Surprised to see this is still not patched. Specifically in the case of large refactors where you don’t want to commit broken / half-working states. Echoing another user, I also have learned to create “checkpoints”.

Cursor is great in ways where I can hack fast and minimize opportunity cost of trying several approaches in a short amount of time, especially when prototyping. But this limitation is unintuitive, destructive, and adds negative productivity.

It’s a critical oversight that rejecting a change can lead to file deletion when the change was not creation of the same file. It doesn’t even merit an argument. I am extremely curious how this bug made its way past devs and QA.

1 Like

This issue needs immediate attention. The sudden, unwanted file deletions when undoing ai suggestions are beyond frustrating and is a critical flaw that makes using Cursor Pro unsustainable.

This is a critical problem that must be resolved urgently.

1 Like

+1
Just got this critical issue again and hardly to get back the new file. That’s almost a daily routine.
Reaaaaalllly need to fix this asap.
Thanks!!!

1 Like

I don’t know what happened, but all of the files in my directory just disappeared. I’ve never seen anything like this before! I found this thread and I’m worried Cursor’s bug just nuked my whole project. I’ve got a git backup but I was mid-stream making changes and just lost all of it?

This is crazy unacceptable.

2 Likes

All right, 'so I’m not the only one!

Yeah this is actually crazy. I use the chat to create files, and I’ve done a lot of changes and accepted several generations. But suddenly I get a generation that I want to reject, and when I reject the change the entire file is deleted.

This even happens sometimes when using the Undo command…

This is really crazy to be honest, I’m surprised!

Our team are all on Pro, but will probably be keeping an eye out for alternatives as this is highly frustrating.

I created two bug posts in this forum similar to this issue and somehow I see only this one got attention. Great. Prepare to move on from crusor.

+1. I used Cursor to create a file. Later, i went back and used Cmd+K to modify a function, rejected the change, and it deleted the entire file without warning. I cannot use an IDE that deletes files when that is not what I’m expecting.

1 Like

This is an insanely bad bug, happens to me every time.
Cursor Team, when will it be fixed?

Crickets ******** they won’t respond. The lack of communication and lack of support is highly infuriating.

I’m having the same problem as well and it’s very annoying. It was a new file that I spent hours to make it work. And it just gone. Fortunatelly I didn’t save the project and it was React code. I restored file using DevTools Sources tab…

This must absolutely be the top priority for the development of cursor. It is not acceptable for software to delete entire data if changes are rejected.

The data is always and 100% deleted if you proceed in this way:

  1. accept changes
  2. select undo
  3. reject changes

Result: file deleted.

this should be fixed in the next release!

1 Like

This is a major problem and it just doesnt stop. Really a deal breaker

YES. I removed all of the delete file shortcuts and felt like I was going crazy because this kept happening

+1 for this should be top priority. What I was doing:

  1. Ask cursor to create a few new files.
  2. I work in the new files for hours
  3. Then suddenly I reject a single line change then the files are all deleted.

Are you f*king serious?!

1 Like

Simply provide an option to forbid cursor delete files. THANK YOU FOR DELETING FILES BUT I PREFER TO DO THAT BY MYSELF.

1 Like

If you lose work that wasn’t committed, asking in chat for the AI to restore the file from recent memory works pretty well most of the time

But really hoping this is fixed soon :crossed_fingers:

1 Like

C’mon Cursor team, what the heck is going on? Push the fix already. Or at least acknowledge this thread with an update. Please stop ignoring your paying users.

Agreed - this is a deal killer for me. Hopefully it will be fixed soon.