All ideasMore in Hobbies

Cline cleanup command hit the wrong drive and deleted about 1.5 TB of a family's photos and files

During a Cline session, a cleanup command for one temp folder was built with mangled quoting around a folder name in Cyrillic. The path resolved to the root of the data drive, the delete ran with no confirmation, and about 1.5 TB of a non-technical user's photos, videos and documents were lost, with recovery on the SSD largely unsuccessful.

This one went wrong. Read what happened so you don’t hit the same problem.

How it works

  1. In a Cline session, a cleanup command is built to remove one temp folder
  2. Nested quoting mangles the path, which holds a Cyrillic folder name
  3. The path resolves to the root of drive G:
  4. The recursive delete runs with no confirmation and wipes everything on the drive that is not locked
  5. About 1.5 TB of photos, videos, downloads and the workspace are deleted
  6. The project code survives only because it was pushed to git
  7. Recovery on the SSD mostly fails because of how SSDs erase

Why it’s worth knowing

A mangled quote turned a one folder cleanup into a delete of the whole drive, and nothing in the tool checked the path it had actually built.

Where it’s from

Summarized from a public post on github.com. See the original ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.