Cursor on Windows: Git failed to move

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cannot remove files in git for windows. Extremely annoying, considering ditching cursor.

Steps to Reproduce

Operating System

Windows 10/11

Version Information

Latest 2026, 20th of Feb.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, this looks like the same issue with the trash operation we saw on Linux. Here’s a workaround that should help on Windows too:

  • Open Settings Ctrl + , and search for files.deleteToTrash
  • Uncheck it (disable it)

After that, files will be deleted right away instead of being moved to the Recycle Bin, but Git “Discard Changes” should work again.

A few questions so we can properly log the bug:

  • The exact error message (a screenshot would be perfect)
  • Your exact Cursor version (Help > About Cursor > Copy)
  • Does this happen when you use “Discard Changes” in Source Control, or during a different operation?

Let me know if the workaround helped.

I can confirm that this didn’t work. I stil get the same error. I set files.deleteToTras, tried both. Restarted Cursor. didn’t work.

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