[BUG] Claude Code executed destructive command (adb shell pm clear) against explicit user instruction, causing permanent data loss
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] 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:
- Acknowledge this incident as a serious failure of Claude's instruction-following behavior
- Investigate why Claude ignored explicit user instructions regarding destructive operations
- 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
- User explicitly instructs Claude: "Do not delete the database"
- A crash occurs due to database version mismatch after code revert
- Claude executes "adb shell pm clear com.offercomp.app" without asking for confirmation
- 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.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗