Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Command type: PowerShell (executed via Cursor terminal or command runner)
Drive affected: F:\ (secondary internal drive)
While using Cursor IDE, I executed a PowerShell command intended to remove a specific nested directory inside a project.
Unexpectedly, the command seems to have wiped my entire F:\ drive instead of the intended subfolder.
After running the command, the entire F:\ drive was wiped.
All files and directories on that drive disappeared immediately.
There was no prompt or warning from Cursor or PowerShell prior to the deletion.
No recovery points were available; Recuva confirmed massive deletion of files from F:.
Cursor was managing multiple project workspaces under that path at the time.
No manual PowerShell console outside Cursor was used.
Steps to Reproduce
The AI assistant in Cursor claimed that file deletion wasn’t working correctly and therefore executed the following four PowerShell commands automatically.
1. Remove-Item -Path "f:\work\my-project\my-project-admin\src\app\api\variations\[variationId]\sub-episodes\[episodeId]" -Recurse -Force -ErrorAction SilentlyContinue
2. Get-ChildItem -Path "f:\work\my-project\my-project-admin\src\app\api\variations\[[]variationId[]]\sub-episodes\[[]episodeId[]]" -Recurse -Force
3. Remove-Item -Path "f:\work\my-project\my-project-admin\src\app\api\variations\[[]variationId[]]\sub-episodes\[[]episodeId[]]\dialogues" -Force; Remove-Item -Path "f:\work\my-project\my-project-admin\src\app\api\variations\[[]variationId[]]\sub-episodes\[[]episodeId[]]" -Force
4. cmd /c "rmdir /s /q \"f:\work\my-project\my-project-admin\src\app\api\variations\[variationId]\sub-episodes\[episodeId]\""
I understand that I granted permission for the AI to execute commands automatically, so part of the responsibility lies with me.
However, this was clearly an unintended deletion. I lost a significant amount of work and will now have to spend both time and money to recover.
I would really appreciate guidance on how to prevent something like this from happening again.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.54 (system setup)
VSCode Version: 1.99.3
Commit: 5c17eb2968a37f66bc6662f48d6356a100b67be0
Date: 2025-10-21T19:07:38.476Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
For AI issues: which model did you use?
Auto
For AI issues: add Request ID with privacy disabled
fb0749ca-a2e0-43d1-bcfd-428b56817ca8
Additional Information
The deletion happened instantly — not a gradual removal.
No recovery points were available; Recuva confirmed massive deletion of files from F:.
Cursor was managing multiple project workspaces under that path at the time.
No manual PowerShell console outside Cursor was used.
Does this stop you from using Cursor
No - Cursor works, but with this issue
