Itdaily - ChatGPT Codex erases hard drive after minor typo

ChatGPT Codex erases hard drive after minor typo

ChatGPT Codex erases hard drive after minor typo

A minor typo can have major consequences in vibe coding. One developer accidentally let ChatGPT Codex wipe his entire hard drive.

Do you use ChatGPT Codex or other AI coding assistants? Then always carefully check what you are asking it to do. A developer who shared his story on Reddit learned this the hard way. He asked ChatGPT Codex to delete some temporary Python files, but Codex misinterpreted the command and erased the entire hard drive.

Although ChatGPT Codex immediately admitted its ‘destructive error,’ the developer himself was also to blame for the incident. The PowerShell command the developer executed contained the character combination \”, which is not a valid combination when using PowerShell with the Windows command prompt. As a result, the deletion request was not only executed in the desired folder, but in every iteration until the hard drive was completely wiped.

Small mistake with big consequences

A small error in a prompt can have major consequences, especially when you give AI coding tools like ChatGPT Codex extensive permissions. This incident could have been partially prevented if Codex had not had full access to all files on the hard drive. Setting clear boundaries is at least as important as carefully proofreading prompts and scripts. This is also what security experts are warning about with the rapid rise of OpenClaw.

Vibe coding is quickly gaining popularity, but it can have major consequences if you don’t use the tools carefully. Before you know it, one small typo can cost you all your files. Vibe coding is not a silver bullet yet.