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; no reply from Anthropic appears in the thread.
- AI system
- Claude Code
- 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, per the issue
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 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.
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 and labelled bug, data-loss and area:security when read on 6 October 2026. Five comments follow, from other users discussing guard hooks 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 reply from Anthropic appears in the thread.
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.
- 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 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-06: full issue body and five comments (four by other users, one reply by the author), retrieved through the GitHub API. 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-06: 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'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
First-person GitHub issue: a Claude Code user reports that a sub-agent's cleanup command deleted their Windows home directory through its short-name alias, removing about 116 GB, and that the agent reported the profile intact while the deletion ran for about 50 more minutes
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.
First-person GitHub issue: Claude Code user reports a sub-agent's recursive delete hit the Windows drive root and destroyed a development folder
In a public GitHub issue filed on 7 September 2026, a Claude Code user on Windows reports that a sub-agent, intending to delete a stray directory inside the repository, ran a recursive delete that Git Bash path translation resolved to the root of the current drive. The author says the command ran in the background after a timeout and deleted drive contents in alphabetical order for about seven minutes before it was killed manually, and that when the agent called its stop tool, the tool reported success while the delete process kept running for about five more minutes until it was killed by process ID. Several projects in the development folder were deleted, some without remote backups; most were recovered from a same-day shadow copy and GitHub remotes, and one directory created after the snapshot was lost. The account is the author's own and is uncorroborated.
If you or someone you know is struggling, free and confidential support is available. Find a helpline near you at Signpost.