Skip to content

[BUG] Claude deleting files without requesting permission #14081

Description

@selvaradov

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

While using Claude Code, it ran the command Bash(rm -rf) on three occasions & executed the deletion, without asking for permission first.

I had not previously allowed any deletions in this project, and neither the global claude/settings.json nor .claude/settings.local.json had rm in the list of allowed commands. Also, I was not using --dangerously-skip-permissions.

What Should Happen?

It should request permission as usual, asking you to allow on this occasion, for all similar commands in future, or reject.

Error Messages/Logs

Steps to Reproduce

I'm not sure how exactly to reproduce this, but I have the chat history .jsonl files available of where this happened before, if useful.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.0.69 but it's possible this issue occurred on a slightly earlier version like 2.0.68

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corearea:securityautocloseIssue will be closed automaticallybugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions