Cursor deleted all my files and programs on windows 2 times

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When you ask Cursor to delete what you installed it in this chat, or delete all, the cursor deletes entire of personal files and programs in a minute, this is really annoying.

Steps to Reproduce

n/a

Expected Behavior

n/a

Operating System

Windows 10/11

Version Information

Cursor just deleted all of my stuffs

Does this stop you from using Cursor

Yes - Cursor is unusable

Even I am confused with what you are asking the model to do. Regardless, it shouldn’t be deleting any user folder files. That’s crazy.

Hey, thanks for the report. This is a really serious situation, and I’m sorry it happened, especially twice.

Here’s what’s going on: the File-Deletion Protection and External-File Protection settings only protect against deletes done through Cursor’s built-in tools (the editor and file manager). But terminal commands like rmdir /s /q or Remove-Item -Recurse -Force run directly in the shell, so they can bypass those protections. The team is aware of the issue, and we’ve seen a few similar reports:

For now, the key workaround is: Cursor Settings > Agents > turn off “Auto-run mode”. This makes the agent ask for confirmation before every terminal command, so you can reject destructive commands before they run.

A few questions so we can track your case:

  1. What Cursor version are you on? (Menu > About Cursor > Copy)
  2. Was Auto-run mode enabled?
  3. Is there any chance you can recover the files from backups or recovery tools?

Let me know if you need help with anything else.

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