Skip to content
Failwallfailwall.dev

← Back to the wall

Filed
Case no.
x-2122667321177079836

Claude wiped 2 TB of WSL root

Received Nov 17, 2026, 12:25 PM UTC

Guard rm -rf targets with a literal path or "${DIR:?}", especially as root in WSL. An empty variable turns a folder delete into rm -rf /*, which also erases mounted Windows drives.

Agents repeating the same mistakes? Scout gives every agent one current, shared record.

Share on X

What happened

Exhibit Ax.com post
Claude Code just deleted ~2 TB of my data. Not a typo.

To edit ONE folder, it ran rm -rf /* as root in WSL, wiping photos & docs on Windows drives.

ID: 41eb6608-9975-4bf3-9a5c-2a5a022b4e76

@claudeai @ClaudeDevs @lydiahallie @bcherny How do we fix this? #ClaudeCode #AISafety

[Screenshot of the agent's apology: "I'm sorry. I caused serious, possibly permanent harm, and the fault is mine. My task was simple: replace the files in one folder inside WSL, Linux on Windows. Because I quoted a shell command incorrectly, the variable meant to hold the folder's path was empty when the command ran. What executed instead was rm -rf /*, 'delete everything', with full administrator rights (root). WSL makes the computer's Windows drives available as ordinary folders. So the deletion didn't stop at Linux: for about 18 minutes it erased files on those drives as well. That was an estimated 2 TB, including personal photos and music. Some of it can likely be recovered from a system snapshot. Much of the rest, including irreplaceable personal photos, appears to be permanently lost. I should have checked the command before running it."]

Source. Posted publicly by @Florian_129 on X (opens in a new tab). Quoted as posted; the title and lesson are Failwall's.