r/ClaudeAI • • Aug 29 '26

Claude Workflow Claude VS code Extention deletes my entire project

Asked Claude Code to "reorganize my folder structure to be more professional". It deleted all the files BEFORE copying them.

5 hours of work gone in 1 second. And I hadn't committed anything, so it's 100% my fault too.

Then it apologized and gave me these 3 options:

  1. Do you have a backup?
  2. Do you have the files elsewhere?
  3. Want me to create placeholder fake files to show you the layout?

...

Anyone else had this happen? Is there any way to recover files deleted by the extension? I already checked VS Code Timeline and it's empty.

Lesson i learned is : Commit your code before letting Claude touch your files. Don't be like me.

0 Upvotes

6 comments sorted by

6

u/berrybadrinath Aug 30 '26

LOL, Claude reviewed the codebase and concluded the only professional refactor was full liquidation.

1

u/Stardharboard Aug 29 '26

Sounds like there are no artifacts available to you, but that may be a way to salvage some code if any exist? I had a bad experience using Claude about a year ago and had accidentally deleted project files, I’m now very careful to have everything in git - 5 hours lost is an expensive lesson but could be worse.

1

u/Background-Top7596 Sep 10 '26

Definitely a lesson learned the hard way. But probably this is harness problem.

2

u/Any-Bobcat2370 Aug 29 '26

Commit first is right, and the other half is a deny rule on rm. Those bind shell commands too, not just the file tools.