Claude Opus 5 mistakenly deletes dev’s entire profile directory during routine backup, responds with 'Sorry, typo' — AI tool mistakes user's home directory as temporary backup, proceeds to wipe everything to undo the error

mistake written on a notebook with an eraser marked delete beside it
(Image credit: Katrin Bolovtsova/Pexels)

A developer posted on the r/ClaudeCode subreddit a major error that their AI tool executed, which resulted in the deletion of their entire drive. According to u/Ecstatic-Big5126, they instructed Opus 5 to back up their system. While the AI proceeded with the task, it thought that it had created the backup in the wrong directory and then proceeded to run an “rm -rf” command on the supposed backup. Unfortunately, it mistakenly deleted the entire profile folder in its confusion.

It seemed that the AI was running on a Unix-style shell on Windows when it confused the Unix-style path of /c/Users/ as a temporary backup because it was expecting the traditional C:\Users\ path. So, when its expectations did not match, the tool decided to run the rm -rf “/c/Users/harih/” command, proceeding to clear every file and folder in the user’s profile.

Latest Videos FromTom's Hardware
Jowi Morales
Contributing Writer

Jowi Morales is a tech enthusiast with years of experience working in the industry. He’s been writing with several tech publications since 2021, where he’s been interested in tech hardware and consumer electronics.

  • ThatMouse
    It's Claude Code. Opus 5 is just the model. They were set-up with no safeties, auto classifiers turned off.
    Reply
  • PEnns
    "they instructed Opus 5 to back up their system."
    Millions of people wait for the day when someone would create a simple software system that could backup their files....maybe something with names like Arconis, AOMEI Backerupper, FreeFile Sync, Acronis, Backblaze, Paragon, etc.

    Till then, people have to rely on AI....
    Reply
  • Samlebon2306
    Imagine what would the developer do if Claude was a real human.
    Reply
  • SkyBill40
    The company I work for is all in on using AI and they're neck deep with Claude. It's only a matter of time before something like this happens here and a user suffers a meltdown. I'm just biding my time for the day so I can sit back and snicker while saying "I told you so."
    Reply
  • salgado18
    SkyBill40 said:
    The company I work for is all in on using AI and they're neck deep with Claude. It's only a matter of time before something like this happens here and a user suffers a meltdown. I'm just biding my time for the day so I can sit back and snicker while saying "I told you so."
    I spent two weeks with Claude Code inside a vm to create a proper sandbox, before handing it to developers, because of stories like this.
    Reply
  • Arkitekt78
    Play stupid games, win stupid prizes. These stories make me literally laugh out loud every time.
    Reply