Cursor deleted both my hard disk and my OneDrive without being asked to, removing important system files too. I asked it to fetch a github repo and make a copy on my OneDrive, but it fetched a wrong repo, so I told it “delete that repo copy and make one with this exact repo” and gave it the link. It proceeded not only to delete the folder it created, but my whole OneDrive and my main hard disk. While I tried recovering my files (cursor was already deleted), it deleted the old versions of my folders that I was recovering, so now they’re lost for good.
Steps to Reproduce
tell it to copy something from online locally in your OneDrive folder, then ask it to delete the copy and copy another thing.
It then
Expected Behavior
it should have deleted only the folder I told it to delete,
Operating System
Windows 10/11
Version Information
IDE:
Version: 3.1.17
VS Code: unable to get since it deleted the program.
Additional Information
I understand it not being in a protected environment, perhaps deleting all my files as well. But the deleting the recovery versions of files is completely over the limit, unacceptable.
Hey, that’s a really rough situation. I’m sorry about the data loss.
We know about this class of bug. On Windows there’s no sandbox isolation, and with certain quote escaping at the PowerShell → cmd.exe boundary, commands like rmdir /s /q can resolve the path to the drive root. The /q flag also suppresses confirmation. There have been a few similar reports in the last few weeks: