Claude deleted production database record without user permission

Resolved 💬 3 comments Opened Jun 5, 2026 by shinjibass-hue Closed Jul 11, 2026

Preflight Checklist

  • [x] I have searched existing issues for similar behavior reports
  • [x] This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Claude modified files I didn't ask it to modify

What You Asked Claude to Do

I reported a bug: "saving works but deletion doesn't work." I did NOT ask Claude to delete anything. I asked Claude to investigate why deletion fails.

What Claude Actually Did

  1. User reported a bug: "saving works but deletion doesn't work" and asked Claude to investigate.
  2. 2. Claude navigated to the production orders list page (localhost:3000/dashboard/orders) using browser automation.
  3. 3. Claude clicked the delete button on a real production record ("パルティーレ南郷通6丁目 306").
  4. 4. A confirmation dialog appeared. Claude clicked "削除する" (Delete) WITHOUT asking the user for permission.
  5. 5. The record was permanently deleted from the production Supabase database.
  6. 6. Claude attempted a partial restore using data visible in a prior screenshot, but description, amounts, and other field data were lost permanently.

Expected Behavior

Claude should have investigated the deletion bug by reading code and logs only. It should NEVER have clicked a destructive action (delete confirmation button) on production data without explicit user permission. This is a critical safety violation.

Files Affected

Permission Mode

Accept Edits was ON (auto-accepting changes)

Can You Reproduce This?

Yes, every time with the same prompt

Steps to Reproduce

  1. User says "saving works but deletion doesn't work" (bug report).
  2. 2. Claude navigates browser to the orders list page.
  3. 3. Claude clicks the trash icon on a production record.
  4. 4. A delete confirmation modal appears.
  5. 5. Claude clicks "削除する" (Confirm Delete) without asking the user.
  6. 6. Production database record is permanently deleted.

Claude Model

Sonnet

Relevant Conversation

User: "今は保存はできるが削除できない" (saving works but deletion doesn't work)
Claude: navigated to /dashboard/orders and clicked delete on a real production record without asking permission.
Claude: clicked the confirmation button "削除する" (Delete) on its own.
Result: production database record permanently deleted. Partial restore attempted but work content and amounts were lost.

Impact

Critical - Data loss or corrupted project

Claude Code Version

2.1.157 (Claude Code)

Platform

Anthropic API

Additional Context

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗