Critical Data Loss Issue in Codex App for Windows – Agent Executed File Deletion Outside Project Directory

Hello, I also experienced this issue yesterday when playing around with the Codex app on Windows.

Edit: the model I was using was GPT Codex 5.4.

While I specifically told it to delete the unnecessary files in my project directory, Codex instead began nuking my entire C: drive in my laptop. I didn’t realize this until it started showing permission denied errors for certain files that are part of appdata. In the end, it deleted years of history (700 GB) (and possibly work from my college). Unfortunately it is already too late and I had to repair my os. I figured the only option is to try to scrap the remaining from my hard drive using some deleted files recovery app (I am using Disk Driller and I am waiting for an external hard drive to ship to my college dorm room).

I would suggest OpenAI to add safe guards when deleting files from specific directories. But even if that is put into place, it’s already too late for me and I am not happy about it.

It is partially my fault so I want to warn all seeing my reply to be careful when giving Codex full access and I recommend to not ask it to mass delete files.

4 Likes