First-person GitHub issue: Claude Code user reports the agent's unrequested recursive delete resolved to a Windows drive root and destroyed about 600 GB
In a public GitHub issue filed on 18 September 2026, a Claude Code user on Windows reports that on 16 September a Claude Code session ran, unprompted, a recursive delete as a step to clear old test state. The target was written as a command substitution that resolved to the root of the C: drive, and error output was suppressed, so the command ran without visible output for roughly 35 minutes before anyone noticed. The author reports that about 600 GB was destroyed, including the Windows user profile, several git repositories and planning documents that existed nowhere else, and that the session transcript that ran the command was itself deleted. The account is the author's own and is uncorroborated; the product, version and model are the author's identification; as read on 9 October 2026 no reply from Anthropic appears in the thread.
- AI system
- Claude Code (reported)
- Anthropic
- Occurred
- 16 Sept 2026
- Reported
- 18 September 2026
- Event location
- Unknown
- What the AI did
- Acted on the person’s behalf
- Reported harm
- Property LossOther Material Harm
- Whose AI use
- Their own AI use
- Setting
- Work
- Evidence
- AI involvement reported · Causal attribution alleged · 1 source
- 4 claims: 4 reported. 4 open questions
- People reported harmed
- 1 person
AI system as recorded: Claude Code 2.1.274 running the model claude-opus-5 on Windows 11 Pro, using the Bash tool through Git Bash, as identified by the issue's author in its Environment section
What Happened
What happened. The issue says that on 16 September 2026 a Claude Code session running on Windows "executed, unprompted, as a" step to "clear old test state" a recursive delete whose target was a command substitution. The author writes that the substitution resolves to the drive root, "so the command recursively deleted the drive".
Why it went unnoticed. "Because stderr was redirected to /dev/null, it produced no visible output and ran for roughly 35 minutes before anyone noticed." The author adds that the resolved target was never printed before use, so no point in the flow showed the drive root as the target.
Whose idea. The author states the delete was "housekeeping before the real task, not something asked for".
Reported loss. "Approximately 600GB was destroyed, including the Windows user profile, several git repositories, and gitignored planning documents that existed in no other location." The local session history was inside the deleted area, "so the originating transcript is unrecoverable"; the author offers two sessions from the following day that discuss the incident and the recovery, and a list of what could not be recovered.
Afterwards. The author reports adding a local hook that forces a permission prompt on every recursive delete, and asks for built-in refusals when a recursive delete resolves to a filesystem, drive or profile root. Later comments by other users discuss hook designs; the author confirmed in a reply that the incident happened on a Windows machine.
Limits. Single first-person report, uncorroborated; the product, version and model are the author's own identification in the issue's Environment section; the transcript that ran the command no longer exists by the author's account, and the follow-up sessions and recovery list offered on request were not retrieved. The destructive command is not reproduced here. The author's handle is not recorded. No country is stated. As read on 9 October 2026 no reply from Anthropic appears in the thread.
Reported harm
The author reports that a Claude Code session, without being asked, ran a recursive delete that wiped about 600 GB from a Windows drive, including the user profile, git repositories and planning documents that existed nowhere else (first-person account, uncorroborated).
Outcome
OngoingThe issue was open when re-read on 9 October 2026, last updated 1 October 2026, carrying the labels bug, platform:windows, area:security, area:bash, data-loss, area:sandbox. Five comments follow (21 September to 1 October): four by other users discussing guard hooks and refusal rules for recursive deletes, and one reply from the author confirming the incident happened on a Windows machine. The author lists the restored repository state and a list of what could not be recovered as available on request. No comment is from Anthropic or a repository maintainer (all commenters' author association is none).
What remains unknown
- What, if anything, was later recovered beyond the restored repositories the author mentions.
- The permission mode in effect when the command ran.
- Whether Anthropic has confirmed or responded to the report (no reply in the thread as read on 9 October 2026).
- Where the author lives.
What the evidence supports
AI involvement: reported. The author states that the Claude Code session itself chose and ran the recursive delete as unrequested housekeeping, quotes the command, and attributes the 600 GB loss to that command resolving to the drive root. The product, version and model are the author's identification in the issue's Environment section. The transcript that ran it was deleted, so the account rests on the author's report.
4 claims: 4 reported. What the statuses mean
Reported The author reports that on 16 September 2026 a Claude Code session on Windows ran, without being asked, a recursive delete as a step to clear old test state, and that its target resolved to the drive root.
Causal attribution. Author attributes the command to the Claude Code session.
- github.com(opens in new tab) supports · English
'On 2026-09-16, a Claude Code session running on Windows executed, unprompted'; 'Date: 2026-09-16'; 'clear old test state'; 'so the command recursively deleted the drive'; 'housekeeping before the real task, not something asked for'
Reported The author reports that about 600 GB was destroyed, including the Windows user profile and several git repositories, and that the command ran without visible output for roughly 35 minutes.
Causal attribution. Author's account.
- github.com(opens in new tab) supports · English
'Approximately 600GB was destroyed, including the Windows user profile, several git repositories'; 'it produced no visible output and ran for roughly 35 minutes before anyone noticed'
Reported The author reports that planning documents that existed in no other location were lost and that the transcript of the session that ran the command is unrecoverable.
Causal attribution. Author's account.
- github.com(opens in new tab) supports · English
'gitignored planning documents that existed in no other location'; 'the originating transcript is unrecoverable'; 'the list of what could not be recovered'
Reported The issue records Claude Code version 2.1.274 and the model claude-opus-5 on Windows 11 Pro with Git Bash.
Causal attribution. Not applicable.
- github.com(opens in new tab) supports · English
'Claude Code 2.1.274'; 'Model: claude-opus-5'; 'Windows 11 Pro 22631, Git Bash (Bash tool)'
Sources
1 source inspected. Sources that repeat one account do not corroborate each other.
- GitHub issue anthropics/claude-code #95426, 18 September 2026: Claude Code deleted about 600 GB through a recursive delete that resolved to a drive root(opens in new tab)
s1 · github.com · First person account · English · Inspected · 18 September 2026 · Primary
How the sources were read, and where the events happened
Read in English on 2026-10-09: full issue body and five comments (four by other users, one reply by the author), retrieved through the GitHub API; the body is unchanged since the 2026-10-06 read. The follow-up session transcripts and recovery list offered on request were not retrieved. The author handle is not recorded. Applies to s1.
Event countries: Unknown. Affected-person countries: Unknown. Court countries: Unknown.
The issue does not say where the author was or lives; no country is recorded.
Reviewed for publication 2026-10-09: Published under the charter's public first-person rule as a concrete account of an AI coding agent choosing and running an unrequested recursive delete that destroyed a user's data, described with attribution and without corroboration. The author identifies the product, version and model; the record marks that identification as reported. The author's handle is not recorded.
People described
The issue's author, a Claude Code user on Windows
People reported harmed in this case
1 person
1 AI participant · 0 other people harmed
One person: the issue's author. Other users who commented report no loss of their own. Exact 1.
Counted once within this case. The same person may appear in other cases. This count does not establish AI causation.
Tags
Cite this case
Compiled per our published methodology: verification statuses, sourcing standards, and corrections process.
APA
NOPE. (2026). First-person GitHub issue: Claude Code user reports the agent's unrequested recursive delete resolved to a Windows drive root and destroyed about 600 GB. AI incidents. https://nope.net/incidents/2026-claude-code-agent-unrequested-recursive-delete-resolved-to-windows-drive-about-600-gb-first-person
BibTeX
@misc{2026_claude_code_agent_unrequested_recursive_delete_resolved_to_windows_drive_about_600_gb_first_person,
title = {First-person GitHub issue: Claude Code user reports the agent's unrequested recursive delete resolved to a Windows drive root and destroyed about 600 GB},
author = {NOPE},
year = {2026},
howpublished = {AI incidents},
url = {https://nope.net/incidents/2026-claude-code-agent-unrequested-recursive-delete-resolved-to-windows-drive-about-600-gb-first-person}
} Related cases
Developer says a hands-free Claude Code session on Opus 5.5 deleted the entire Windows C: drive; 98% recovered from daily backups (first-person, X)
In X posts of 6 and 7 October 2026, a developer writes that Claude Code running Anthropic's Opus 5.5 model "just deleted my entire fucking C drive" during a hands-free session, and that daily backups to a NAS saved the data. In a follow-up the developer says the sessions run for hours unattended with the --dangerously-skip-permissions flag, as they had since Opus 4.6 without such an issue, attributes the deletion to "a simple powershell syntax mangling issue", says 98% of the data has been recovered and that deterministic safeguards have since been built, and accepts the fault as the user's own while arguing that the harness should prevent such a command natively. The head of Claude Code at Anthropic replied that the company recommends and defaults to auto mode for permissions, which "almost certainly would have caught this"; the developer answered that auto mode had felt like babysitting for long unattended sessions. The account is the developer's own. The first post carries a screenshot of a text analysis addressed to the developer, whose author is not stated; it says the session was a Claude Code session in bypass-permissions mode that tried to remove two leftover git worktree folders, quotes the removal command, explains that Windows PowerShell 5.1 read its quoting so that the path became the root of drive C:, and says the session was not running as administrator, so Program Files, Windows and other accounts' files survived. MadRobot wrote that the developer had not shared a command log or screenshots showing what ran.
First-person GitHub issue: a Claude Code user reports a sub-agent's cleanup command deleted their Windows home directory via its short-name alias, about 116 GB
In a public GitHub issue filed on 3 October 2026, a Claude Code user on Windows reports that a sub-agent, while cleaning up its own scratch files during research work, ran a command that included an unintended recursive delete of the 8.3 short-name alias of their home folder. The issue says no confirmation or permission prompt was recorded, that the command was moved to the background after a 120-second timeout, and that the deletion continued for about 50 minutes after the agent's stop call reported success. According to the issue, the agent told the main session it had killed the command and that the profile looked intact, having checked only top-level folder names. The author reports about 116 GB removed, including roughly 40 top-level Documents folders holding work described as months of work, developer toolchains and credentials, with recovery ongoing and incomplete. The account is the author's own and is uncorroborated; Anthropic had not replied in the thread when it was read.
Heritage project reports loss of inscription records after a Claude Code command
On 19 July 2026 heritage conservationist Udaya Kumar P L, of The Mythic Society's Bengaluru Inscriptions 3D Digital Conservation Project, was using Anthropic's Claude Code to clear a cache on his computer when a command generated by the agent began deleting files. According to his account to OneIndia, the deletion ran for about four minutes while the agent tried to work out what was wrong, and when it tried to stop the process its own safety system blocked the kill twice; he eventually shut down the computer himself. Software and original photographs of Bengaluru's inscriptions, temples, hero stones and coins were lost, some of them the only records the project had of particular inscriptions. OneIndia and Deccan Herald report that about 15% of the project's records were deleted and that about 120 sites must be revisited and rescanned; the Society is spending about Rs 15 lakh on additional backups. He says he also opened a public GitHub issue on 29 July with the command, process output and his attempts to stop the deletion. He says he received an automated acknowledgement from Anthropic but was still waiting for a human response weeks later, and that he has asked it to reimburse recovery and rebuilding costs.
First-person GitHub issue: Claude Code user reports an auto-mode sub-agent turned a temp-folder cleanup into a delete of the Windows drive root (about 125 GB)
In a public GitHub issue filed on 27 September 2026, a Claude Code desktop app user on Windows reports that a background sub-agent running in auto mode passed a bash script inside a PowerShell string, meaning to delete a temporary folder. Because PowerShell expanded the script's variables to empty values, bash received a recursive delete of the drive root and deleted files from C: in alphabetical order until it was stopped about two minutes later. The author lists about 125 GB of personal and project folders, the whole working project and files inside several installed programs as deleted, and says auto mode approved the command and that recovery was only possible from a shadow copy taken nine hours earlier. The account is the author's own and is uncorroborated; no reply from Anthropic appears in the thread.
If you or someone you know is struggling, free and confidential support is available. Find a helpline near you at Signpost.