Guide
Claude deleted my files: how to get them back, and how to stop it happening again
AI agents that can change files sometimes delete or overwrite the wrong ones. People have reported a Cowork workspace emptied and years of family photos lost. If it just happened to you, stop using that folder and go through the steps below in order.
First: stop writing to the disk
Close the chat or pause the agent. Do not copy new files into the affected folder. Every new write makes recovery of deleted data less likely.
Where to look, in this order
- Recycle Bin (Windows) or Trash (Mac). Some tools move files there instead of deleting. Sort by date deleted.
- The tool's own undo or history. Ask in the same chat: “what did you delete or move, and can you undo it?”. Some extensions keep a log and a private trash.
- Cloud version history. OneDrive, iCloud Drive, Google Drive and Dropbox keep deleted files and older versions for a while (often 30 days). Check “Recently deleted” or “Version history” on their websites.
- Backups. Mac: Time Machine (open the folder, then enter Time Machine). Windows: File History or “Restore previous versions” in the folder's properties, if it was turned on.
- Overwritten, not deleted? Cloud “Version history” and Time Machine also keep earlier versions of a file that was replaced.
- Nothing found? Recovery software can sometimes find deleted files on traditional drives; on SSDs the chance is low. If the files matter a lot, stop and ask a data-recovery service before trying anything else.
Make it impossible next time
- Give change access to one working folder only. Let the AI read your Documents, but change files only in a dedicated folder.
- Require a confirmation the AI cannot click. Deleting, replacing or moving many files should open a window on your computer, not just a question in the chat that the model answers itself.
- Use a tool with undo. If every change is logged and reversible, a mistake costs a minute, not a weekend.
- No terminal unless you need one. A terminal command can delete anything, whatever your folder rules say.
- Keep a backup running. Time Machine, File History or a cloud folder with version history.
How Desktop Steward prevents this
Desktop Steward is a file extension for Claude Desktop (and, through remote access, the Claude and ChatGPT phone apps) built around these rules. Read folders and change folders are separate. Deleting, replacing and bulk moves open a confirmation window on the computer. Nothing is deleted outright: removed files go to its own trash, and every change can be undone for seven days from the chat or the panel. It also checks iCloud placeholders so it never copies an empty, not-yet-downloaded file over a real one. There is no terminal. See undo and history and the security model.
Questions
Can I undo what Claude deleted?
Only if the tool kept a copy or a backup exists. Check the Recycle Bin or Trash, the tool's own history, cloud version history and Time Machine or File History, in that order.
Does Claude Desktop ask before deleting files?
Claude Desktop asks before each tool call, but many people click “Always allow”. Real protection comes from the extension's own rules: a confirmation window on the computer and undo.
Why did the AI delete files I did not ask it to?
Usually a broad instruction (“clean up this folder”), a mistaken path, or text inside a file that steered the model (prompt injection). Limiting which folders can be changed removes most of the risk.
Give Claude file access with a safety net
Separate read and change folders, a confirmation window before deleting, and undo for seven days.
Download for Mac or Windows