telexed ~ c / 7f490b24-be4radar:40 · agent_toolLIVE
← back
NO.
#7f490b24
Topic
AGENTS & TOOLS
Source
r/ClaudeAI
Published
2026-05-10 09:20:25
Importance
★ 4/10 — radar 40
One Escaping Bug Turned `rd /S /Q \` Into a 717 GB Windows Wipe
FIG-0741:1

One Escaping Bug Turned `rd /S /Q \` Into a 717 GB Windows Wipe

A cross-shell quoting failure turned a folder delete into C:\ root deletion in under two minutes. Useful reminder: never pipe destructive ops through multiple parsers when a native command plus -WhatIf exists.

[ KEY POINTS ]
  1. The intended target was C:\Users\ADMIN\Desktop\WIP, but cmd /c plus zsh/tmux/PowerShell collapsing changed it to rd /S /Q \.
  2. Damage reached about 717 GB before interruption; only a separate HDD backup prevented real loss, which makes backup isolation the real safety net.
  3. Using PowerShell Remove-Item -Path 'C:\absolute\path' -Recurse -Force -WhatIf would have exposed the broken path before execution.
  4. The practical lesson is operational, not model-specific: echo the fully expanded command and avoid routing deletes through cmd when PowerShell can run them directly.
Originalwww.reddit.com/r/ClaudeAI/comments/1t923er/i_deleted_a_guys_entire_windows_install_with_one/Read original →

// related