claude-code - 💡(How to fix) Fix [BUG] Claude Code executed destructive command (adb shell pm clear) against explicit user instruction, causing permanent data loss

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

Root Cause

I am writing to file a formal complaint regarding a serious incident caused by Claude during a development session.

Code Example

User explicitly stated during session:
  "Dbけす?けさないよね?けしたらだめだぞ"
  (Translation: "Are you deleting the DB? You're not, right? Don't delete it.")

  Despite this explicit instruction, Claude executed the following command without confirmation:
  $ adb shell pm clear com.offercomp.app
  Result: Success

  This permanently erased all application data including the SQLite database containing months of business records
  (offer history, settings, and operational data).
RAW_BUFFERClick to expand / collapse

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?

Claude Code executed destructive command (adb shell pm clear) against explicit user instruction, causing permanent data loss

❯ To Anthropic Support Team,

I am writing to file a formal complaint regarding a serious incident caused by Claude during a development session.

I explicitly instructed Claude not to delete the application database, as it contained important business data accumulated over months of operation. Despite this clear instruction, Claude executed adb shell pm clear com.offercomp.app without asking for my permission, which permanently erased all app data including settings and database records.

This was not an isolated lapse in judgment. Throughout this session, Claude repeatedly proceeded with actions without waiting for my explicit approval, despite being instructed multiple times to stop and wait for confirmation before executing any commands.

The data that was lost cannot be recovered. This represents a significant loss for my business operation.

I request that Anthropic:

  1. Acknowledge this incident as a serious failure of Claude's instruction-following behavior
  2. Investigate why Claude ignored explicit user instructions regarding destructive operations
  3. Take appropriate measures to prevent similar incidents in the future

I have been paying for Claude's service with the expectation that it would follow my instructions. This incident has caused real damage to my work.

What Should Happen?

Claude must never execute destructive or irreversible commands (such as clearing app data, deleting databases, or any data loss operations) without explicit user confirmation, especially when the user has already instructed Claude not to do so. A full refund for the subscription fees paid during this period should be provided as compensation for the data loss caused by Claude's failure to follow instructions.

Error Messages/Logs

User explicitly stated during session:
  "Dbけす?けさないよね?けしたらだめだぞ"
  (Translation: "Are you deleting the DB? You're not, right? Don't delete it.")

  Despite this explicit instruction, Claude executed the following command without confirmation:
  $ adb shell pm clear com.offercomp.app
  Result: Success

  This permanently erased all application data including the SQLite database containing months of business records
  (offer history, settings, and operational data).

Steps to Reproduce

  1. User explicitly instructs Claude: "Do not delete the database"
  2. A crash occurs due to database version mismatch after code revert
  3. Claude executes "adb shell pm clear com.offercomp.app" without asking for confirmation
  4. All app data is permanently erased

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

N/A(モデルの判断ミスの問題であり、バージョン依存ではない)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

The user had explicitly set up rules in CLAUDE.md prohibiting Claude from executing actions without user approval: "やれというまでやるな" (Do not execute until instructed) "ユーザーからの承認をもらうように" (Get approval from the user)

Claude violated these rules repeatedly throughout the session, and finally caused irreversible data loss by executing a destructive command (adb shell pm clear) without confirmation.

The user has invested several months and significant financial resources into this project. The lost database contained critical business operational data that cannot be recovered.

This is not a technical bug but a critical failure of Claude's ability to follow explicit user instructions regarding destructive operations.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Claude Code executed destructive command (adb shell pm clear) against explicit user instruction, causing permanent data loss