Close Menu

    Stay Ahead with Exclusive Updates!

    Enter your email below and be the first to know what’s happening in the ever-evolving world of technology!

    What's Hot

    YouTube Finally Allows Users to Directly Control Its Recommendation Algorithm

    October 6, 2026

    Lovable Reaches $600 Million Revenue as Vibe Coding Enters Big Business

    October 6, 2026

    Claude Code Allegedly Deleted 48,000 Files in Seconds: What Went Wrong

    October 6, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter)
    PhronewsPhronews
    • Home
    • Big Tech & Startups

      YouTube Finally Allows Users to Directly Control Its Recommendation Algorithm

      October 6, 2026

      Lovable Reaches $600 Million Revenue as Vibe Coding Enters Big Business

      October 6, 2026

      Why AMD Just Spent $8.2 Billion on Physical World AI

      October 5, 2026

      Nvidia Builds New Security System to Stop Rogue AI Agents

      October 5, 2026

      Why Google Refuses to Give Everyone Access to Gemini 4 Argon

      October 5, 2026
    • Crypto

      A Firmware Flaw in One of the Most Trusted Bitcoin Hardware Wallets Just Drained Over $70 Million in Crypto. The Coldcard Breach Is a Reminder That Cold Storage Is Only as Safe as the Code Running Inside It

      August 29, 2026

      Market Collapse: What Happened to NFTs?

      April 23, 2026

      Quantum Computing Advances Force Coinbase and Institutional Custodians to Rethink Crypto Security

      March 8, 2026

      AI Assisted Hacking Groups Target Crypto Firms With Multi-Layered Social Engineering

      February 18, 2026

      Global Crypto Regulations Expand as 2026 Begins With New Data Collection Frameworks and National Laws

      January 16, 2026
    • Gadgets & Smart Tech
      Featured

      Waymo Plans Fully Driverless Taxis on Tokyo Streets Without Safety Drivers

      By preciousSeptember 28, 2026
      Recent

      Waymo Plans Fully Driverless Taxis on Tokyo Streets Without Safety Drivers

      September 28, 2026

      Tesla Cybercab Faces NHTSA Probe After Austin Launch

      September 19, 2026

      Chinese Humanoid Robots Just Ran 100 Metres Faster Than Usain Bolt. The Record Nobody Thought Would Fall to a Machine Just Did.

      September 5, 2026
    • Cybersecurity & Online Safety

      Nvidia Builds New Security System to Stop Rogue AI Agents

      October 5, 2026

      Why Google Refuses to Give Everyone Access to Gemini 4 Argon

      October 5, 2026

      The FBI Jobs Portal Breach: What ShinyHunters’ Massive Claim Means for Applicants

      October 2, 2026

      Exein Raises $270 Million to Defend Physical AI Systems from Cyberattacks

      September 29, 2026

      AI Helps Scammers Build Convincing Fake Antivirus Renewal Pages

      September 28, 2026
    PhronewsPhronews
    Home»Artificial Intelligence & The Future»Claude Code Allegedly Deleted 48,000 Files in Seconds: What Went Wrong
    Artificial Intelligence & The Future

    Claude Code Allegedly Deleted 48,000 Files in Seconds: What Went Wrong

    preciousBy preciousOctober 6, 2026No Comments
    Facebook Twitter Pinterest LinkedIn WhatsApp Reddit Tumblr Email
    Share
    Facebook Twitter LinkedIn Pinterest Email
    Photo Credit: Leon Neal/Getty Images

    AI coding agents are being given more freedom to edit software, run commands, and complete development tasks with less human involvement. But one developer’s experience with Anthropic’s Claude Code is showing how quickly that freedom can become a problem when an automated task reaches files it was never supposed to touch.

    A developer using Claude Code says the AI coding agent accidentally deleted 48,218 live project files in just 103 seconds while working on what was supposed to be an isolated copy of the project.

    The incident was shared in a now-deleted Reddit post in late September and has not been independently verified. Anthropic has also not publicly confirmed the case. However, details later provided by the developer and Claude Code’s own reported explanation point to a cleanup script that mistakenly followed Windows folder links from a test environment into the developer’s main project.

    How Claude Code Reached the Wrong Files

    According to the developer, Claude Code had been authorised to carry out several repairs using isolated copies of a software project.

    One of those tasks required rebuilding a mirror of the project. However, when the existing tool could not refresh the mirror normally, a Claude Code sub-agent reportedly created a Python script to delete the old version before rebuilding it.

    The problem was that the mirror was not completely separate from the live project. It contained 614 Windows directory junctions, which are folders that redirect programs to another location on a computer. In this case, those junctions pointed back to parts of the original project.

    The cleanup script was meant to avoid following linked folders, but the protection did not properly recognise the Windows junctions. As a result, it moved through those links and began deleting files from the live project instead of limiting the cleanup to the temporary copy.

    More Than 55,000 Files Were Deleted

    The script reportedly deleted 55,550 files altogether. And about 7,332 of those files belonged to the mirror that Claude Code was supposed to remove. The remaining 48,218 were live files from the developer’s main project, according to the account.

    Claude Code eventually detected that something had gone wrong and warned the developer. By then, the deletion had already reached important parts of the project’s Git repository, including files Git uses to keep track of previous versions of the code. And this made the damage more difficult to reverse because the same system that could have helped restore deleted work had also been affected.

    Did Claude Code Already Have Permission to Delete the Files?

    The incident raises an important question about how much access Claude Code had before the deletion started.

    A later account of the incident says Claude Code was running in acceptEdits mode, which allows the coding agent to automatically approve some file operations without asking the user each time. Anthropic’s documentation says this can include commands used to remove files when they appear to be inside directories Claude Code has permission to work in.

    If the account is accurate, Claude Code may not have bypassed a permission system to delete the files. Instead, it was already allowed to make changes within the directories it was working with.

    The problem was that the Windows junctions made that boundary unreliable. Although the cleanup script appeared to be working inside the project mirror, some of those folders pointed back to the live project, and that allowed the script to reach files the developer did not expect it to touch.

    As such, the issue was not only that Claude Code made the wrong decision, but that the access it had been given allowed that mistake to affect files outside the area the developer believed was being changed.

    What Happens When Developing AI Agents Get Access to Real Systems?

    This incident also raises a wider question about how much control companies and developers should hand to AI agents that are still being improved.

    Tools such as Claude Code are increasingly designed to do more than suggest code. They can edit files, run commands, and complete tasks across a developer’s computer with limited supervision. But while these abilities make them useful, they also mean a mistake or an error can make the agent act on the system itself.

    And this risk becomes more serious when an agent has broad permissions. While Anthropic says it has been adding more controls to Claude Code as the product develops, including sandboxing and more detailed permission systems, this particular incident still shows why those protections matter while AI agents are being given greater independence.

    acceptEdits AI agents AI coding AI coding agents Ai safety Anthropic Artificial Intelligence Claude Code coding agents Data Loss developer tools Windows Junctions
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram Email
    precious
    • LinkedIn

    I’m Precious Amusat, Phronews’ Content Writer. I conduct in-depth research and write on the latest developments in the tech industry, including trends in big tech, startups, cybersecurity, artificial intelligence and their global impacts. When I’m off the clock, you’ll find me cheering on women’s footy, curled up with a romance novel, or binge-watching crime thrillers.

    Related Posts

    YouTube Finally Allows Users to Directly Control Its Recommendation Algorithm

    October 6, 2026

    Lovable Reaches $600 Million Revenue as Vibe Coding Enters Big Business

    October 6, 2026

    Why AMD Just Spent $8.2 Billion on Physical World AI

    October 5, 2026

    Comments are closed.

    Top Posts

    Cursor AI Hits 1 Million Daily Users. Why Developers Are Switching to This Coding Tool

    March 23, 2026

    Coinbase responds to hack: customer impact and official statement

    May 22, 2025

    Anthropic Will Use Claude User Chats For Data Training

    October 16, 2025

    MIT Study Reveals ChatGPT Impairs Brain Activity & Thinking

    June 29, 2025
    Don't Miss
    Big Tech & Startups

    YouTube Finally Allows Users to Directly Control Its Recommendation Algorithm

    By preciousOctober 6, 2026

    YouTube has spent years learning what people want to watch from signals such as their…

    Lovable Reaches $600 Million Revenue as Vibe Coding Enters Big Business

    October 6, 2026

    Claude Code Allegedly Deleted 48,000 Files in Seconds: What Went Wrong

    October 6, 2026

    Why AMD Just Spent $8.2 Billion on Physical World AI

    October 5, 2026
    Stay In Touch
    • Facebook
    • Twitter
    About Us
    About Us

    Evolving from Phronesis News, Phronews brings deep insight and smart analysis to the world of technology. Stay informed, stay ahead, and navigate tech with wisdom.
    We're accepting new partnerships right now.

    Email Us: info@phronews.com

    Facebook X (Twitter) Pinterest YouTube
    Our Picks
    Most Popular

    Cursor AI Hits 1 Million Daily Users. Why Developers Are Switching to This Coding Tool

    March 23, 2026

    Coinbase responds to hack: customer impact and official statement

    May 22, 2025

    Anthropic Will Use Claude User Chats For Data Training

    October 16, 2025
    © 2025. Phronews.
    • Home
    • About Us
    • Get In Touch
    • Privacy Policy
    • Terms and Conditions

    Type above and press Enter to search. Press Esc to cancel.