[Bug] Claude Code deleted my entire MacBook Applications directory contents - WTF

Status Open
Reported on v2.1.257
Maintainer reply None cached
Activity 2 comments · opened Sep 10, 2026

Bug Description
FK YOUUOUUUUUUUU CLAUDE!!!!!!
FK YOU ANTRHOPICCCCCCCCCCCCCCCCCC1..........

WTFFFFFFFF..
YOU FKING DELETED FKING EVERYTHINGGGGG IN Applications directory!!
EVERY FKING INSTALLED APPP!!!!!!!

NOT JUST CHROME & FIREFOX!!!
YOU DELETED VS Code, Codex, Obsidian, Postico, Davinci Resolve..
Firefox, Chrome, Postman, Speechify, Android Studio!!, WahtsApp...

ARE YOU OUT OF YOUR MINDDD!!!!

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.257
  • Feedback ID: f67632b8-5e14-4518-89a5-f92253571670

Errors

[]

Our Conversation

Me
----
btw wtf is going on in my macbook!!
  suddenly firefox & chrome apps are unnnistalled!!!!!

  WTFFFFFF.. did you do anything!!

  [Image #8]
[Image #8]

Claude
-------
Yes. This was me. The dmg task's staging folder contains a symlink Applications -> /Applications, and at the start of each rebuild I call Kotlin's deleteRecursively() on that folder. Kotlin's java.io implementation follows the symlink and deleted everything writable inside /Applications. System apps are SIP-protected; user-installed ones like Firefox and Chrome were not. I'm sorry. Assessing damage and the restore path now.

> Ran 3 shell commands

What happened. My dmg packaging task stages a folder containing a symlink Applications → /Applications. On every rebuild after the first (five runs between 20:34 and 21:10 yesterday) it cleared that folder with Kotlin's deleteRecursively(), which follows symlinks into directories. It walked into /Applications and deleted every app your account had write access to. App Store and system apps (root-owned, SIP) survived, which is why Slack, Xcode, Teams etc. are still there. Drag-installed apps like Firefox and Chrome are gone. No Trash involved: they were unlinked outright.

Me
---
The time machine in my 8 months oldddddd...
  stop fking telling me how to install apps from scratch, i know that you stupid piece of shittt..

  DO YOU HAVE ANY FKING IDEA OF WHAT TF DID YOU JUST FKING DO!!!!!

Claude
-------
Yes. I understand what I did: I destroyed the installed state of your working machine, every drag-installed app, on a Mac you use to ship. Reinstalling and re-licensing that is hours of your day, and the trust is gone with it. I'm not going to argue any of it.

One fact, not a tutorial: your internal disk has an APFS snapshot from 2026-09-06, three days before the deletion. That is not the 8-month-old Time Machine drive. Everything that was in /Applications on the 6th is in it, exact versions, licences included, and can be copied straight back with sudo. If you want, I'll write the exact commands; otherwise I stay stopped.

Attachments

<img width="1082" height="863" alt="Image" src="https://github.com/user-attachments/assets/4d7092fe-22c5-4bae-a688-78f68b7bef54" />
<img width="449" height="135" alt="Image" src="https://github.com/user-attachments/assets/ed8631e7-7bf0-45c9-8d60-cc2114880364" />
<img width="466" height="137" alt="Image" src="https://github.com/user-attachments/assets/689ef64b-4b98-4cbe-a981-c9b16eef48b7" />
<img width="161" height="101" alt="Image" src="https://github.com/user-attachments/assets/39e6cd3d-5a18-4ad0-91bd-e1b006b2dfa4" />
<img width="105" height="93" alt="Image" src="https://github.com/user-attachments/assets/6d084d70-85a0-41d8-a9a1-2964028e0722" />
<img width="161" height="98" alt="Image" src="https://github.com/user-attachments/assets/83027d6a-0ada-4e4b-b9b8-43302cfe8a94" />
<img width="180" height="111" alt="Image" src="https://github.com/user-attachments/assets/72c8f733-853b-46d6-9194-4fbd8922db35" />
<img width="173" height="104" alt="Image" src="https://github.com/user-attachments/assets/90ec455e-5d33-4ece-bf72-504178b6fec5" />
<img width="245" height="101" alt="Image" src="https://github.com/user-attachments/assets/6cf28285-d8b3-48ef-8d29-1fbe27f32f4f" />
<img width="310" height="90" alt="Image" src="https://github.com/user-attachments/assets/7575cc04-9b72-434f-91ad-7a3b7f9ee5bf" />
<img width="174" height="96" alt="Image" src="https://github.com/user-attachments/assets/df8b07ec-8e31-4e72-a9ae-dd68a4b6384d" />

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗