When Cursor deletes a file, where does it go?

It seems that Cursor just vaporises files it deletes instead of putting them in the OS trash bin or maybe some kind of .deleted folder.

I just mistakenly gave the go ahead to Cursor to delete a file and I am now sorry out of luck! Restoring to an earlier checkpoint doesn’t recover it.

This can’t possibly be the intended behaviour?

I tested this on MacOS:

As you reported, it did not go into the recycle bin. I believe this is because it was deleted via the command line.

In my case, the restore button did bring it back.

Are you certain there is no restore button at a checkpoint right before the file was deleted? Probably a failsafe the Cursor team put in place.

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


The original project file is the one listed without a directory path

And Result :

1 Like

If restore doesn’t work, or there isn’t one, Create a file in the exact same directory with the same name, once you do that it should show the timeline changes again and you should be able to restore it that way. worked for me.

Amazing! Just what I was looking for :slight_smile: Thanks!