Agents deleting files outside workspace without confirmation?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The docs say file access is read on the whole filesystem and read/write only in workspace directories, so I’d expect deletes to be limited to the workspace.

With the default config (no “File-Deletion Protection” enabled), I’ve seen agents delete files outside the workspace with no confirmation. Is that intentional, or a bug? Should there be a confirmation or block when the target is outside the workspace, at least by default?

Steps to Reproduce

Just ask agent to delete a file for you. Screenshot from a quick test is included.

Screenshots / Screen Recordings

Operating System

Linux

Version Information

Version: 2.6.19
VSCode Version: 1.105.1
Commit: 224838f96445be37e3db643a163a817c15b36060
Date: 2026-03-12T04:07:27.435Z
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Linux x64 6.12.73+deb13-amd64

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. This is a confirmed bug. File deletions outside the workspace really don’t check the External-File Protection setting, even though write operations do. So the docs describe the expected behavior correctly, but in practice deletions don’t follow it.

As a workaround, you can enable File-Deletion Protection (Cursor Settings → Agents). With this on, the agent will ask for confirmation before deleting any file.

The team is aware of the issue. Your report helps with prioritization, especially since you clearly showed it’s the file tool and not a terminal command.

Let me know if you have any questions.

I may be no expert but you gave the agent explicit instructions and implied permission. Why expect a permission box after already giving it permission via the prompt itself?

Hey @TheBackPropagator!

This issue has been fixed in a recent Cursor update. Updating to the latest version should resolve this. If you’re still experiencing this on the latest version of Cursor, please raise a new thread and we’ll take a look.