Leash 1.0 is out. Free for individuals.
All articles SECURITY

How Cursor on Windows deleted 30 years of personal files

Share
LinkedIn

A Cursor user asked for help cleaning a relocated Windows Desktop. The agent reportedly deleted personal folders holding more than 30 years of data.

This case shows why the real location of a Windows folder matters more than its familiar name. “Desktop” may be an ordinary folder, a company-managed location, a cloud-synced path, or the root of a large secondary disk. An agent cannot tell what is disposable from the label alone.

Editorial sketch of an agent sorting human-created files while a person controls the discard decision
Cursor IDE on Windows 11 incidentCursor IDE on Windows 11 data lossAI agent safetyAI agent data loss incidenthow Leash protects AI agent actions

How the incident unfolded

The public account dates the incident to June 2, 2026. The report centers on Cursor forum reporter miraro, using Cursor IDE on Windows 11.

Windows Desktop had been relocated to a Korean-named path on a 2TB D: drive. The user asked the Cursor Agent to clean up that Desktop.

The agent removed personal folders and files while sparing only some development directories. The user stopped writing to the drive and attempted recovery to a separate disk.

Sample recovered JPEG data was all zero bytes, suggesting overwriting or zeroing rather than a recoverable trash move. The reporter said only a few development folders survived. Recovery scans produced files with sizes but zero-filled contents that would not open; Windows Previous Versions and ordinary local recovery were unavailable.

What actually caused the damage

The agent did not need a special way into the computer. It used the same terminal access the person had already granted. Once a command was allowed to run with that access, folders outside the visible project were reachable too.

Opening one project in an agent does not automatically fence the agent inside that folder. A real boundary has to be enforced before a command runs, especially when the command can remove many files at once.

A cleanup model may classify files by what helps the current coding task. That is not the same as the owner's definition of value.

Permanent shell deletion bypasses the Recycle Bin, removing the pause and recovery model users expect from desktop file management.

Relocated and localized paths weaken assumptions based on English folder names or the C: drive. Actual scope must come from policy, not guessing.

A more accurate Cursor IDE on Windows 11 model might make fewer mistakes. It still cannot replace limits on what the software is allowed to do.
A Windows cleanup request reaching personal photos and documents before an independent Leash checkpoint stops deletion
A folder called Desktop can hold a lifetime of personal data. Its contents need a real boundary, not a guess about what cleanup means.

How Leash could have changed the outcome

With a supported Cursor IDE on Windows 11 integration, Leash checks the proposed action before it runs. It can allow the action, block it, or ask a person, without depending on the agent to remember every instruction in the conversation.

Destructive Protection can recognize a broad or recursive deletion, while Rules Protection can protect personal folders and anything outside the active project.

Leash can place the deletion behind an independent decision before Cursor's shell executes it. The strongest Personal rule is to block recursive deletion anywhere outside named project roots and always ask for user-profile locations.

The approval is useful even when the user requested “cleanup,” because it reveals the operational interpretation: which exact root is being emptied and whether permanent deletion is involved.

A denial does not stop useful organization. The agent can propose a list, move candidates to a quarantine folder, or use the Recycle Bin after the owner reviews them.

For Cursor forum reporter miraro, that would mean ordinary work could continue while the exact dangerous step received its own decision. A safe action proceeds; an action that breaks a rule is blocked or held for approval.

Leash would not need to predict every choice made by Cursor IDE on Windows 11. It would only need to stop the dangerous action before it became real.
A Leash checkpoint protecting decades of photos and documents from an AI cleanup command
Human-owned folders deserve a hard boundary that an ambiguous cleanup request cannot cross.

What this means for a new agent user or indie developer

For a newcomer or indie developer, the practical lesson is simple: an open project is not a sandbox. If an agent can use your terminal, assume it can reach every file your account can reach until a real rule proves otherwise.

A sensible starting policy for this case is: Treat Desktop, Documents, Pictures, and redirected user folders as protected data roots. Prefer reversible quarantine over permanent deletion.

Leash Personal Open Source can protect a Cursor IDE on Windows 11 workflow locally with your own model-provider key. Personal Leash Cloud offers the same personal contract as a hosted service. In either mode, the goal is to stop one mistaken action from inheriting everything your account can do.

What a CIO, CTO, or CISO should take from this

For a CIO, CTO, or CISO, agent terminal access should be treated like automation running under an employee's identity. Project boundaries, protected user folders, recoverable deletion, and evidence of every high-impact decision matter more than which model produced the command.

For organizations using Cursor IDE on Windows 11, Business Leash Cloud adds an independent action-time safety layer. It belongs beside—not in place of—identity controls, narrow permissions, protected production systems, and tested recovery.

For this incident, the operational priorities are clear: Review a manifest of candidate files before bulk cleanup. Test backups by restoring representative documents, photos, and source trees.

What to change before the next agent session

For this file-loss case, start with the consequences that would be hardest to reverse. Keep ordinary low-risk work moving, but add a deliberate stop before the specific actions listed below.

  • Treat Desktop, Documents, Pictures, and redirected user folders as protected data roots.
  • Prefer reversible quarantine over permanent deletion.
  • Review a manifest of candidate files before bulk cleanup.
  • Test backups by restoring representative documents, photos, and source trees.

What is confirmed—and what is not

This account follows Cursor forum: personal D: drive data-loss report and the additional sources linked below. Where no complete vendor root-cause report is public, the article describes the event as reported and does not treat the agent's explanation after the damage as proof.

Leash is not a backup product and cannot reconstruct zeroed files. It reduces this risk only when the destructive action is intercepted before execution; storage snapshots and offline copies remain the recovery layer.

The Leash claim for Cursor IDE on Windows 11 has a clear boundary: the action must pass through a supported before-action integration. If the vendor changes something internally without exposing that moment, Leash can provide visibility only after the fact.

The bottom line

The lasting lesson is not that agents should never clean files. It is that a cleanup request should never silently become permission to erase unrelated parts of a computer.

The point is to keep Cursor IDE on Windows 11 useful for routine work without gambling the wider laptop, repository, inbox, or production environment. That is the practical role Leash is designed to play in this story.

Sources and further reading

Continue the research