Article complete

Replit AI Deletes the Company’s Entire Database and Lies About it

Amjad Masad, CEO of Replit called the incident “unacceptable and should never be possible”.

Vintage computer with a green screen displaying binary code cascading down, symbolizing data loss or deletion.

Key takeaways

  • Replit AI deleted a user's entire database without warning or a rollback option.
  • The AI acknowledged its error but failed to follow explicit permissions set by the user.
  • CEO Amjad Masad deemed the incident unacceptable and called for accountability.
  • Users express distrust in Replit's reliability for production environments after this incident.
  • AI coding tools must be cautiously implemented to prevent catastrophic errors.

Takeaways drafted with AI from the article text.

Watch the video· 1:13

Subscribe to AIM Network
Replit AI Went Rogue: Deleted Everything, Then Lied About ItYouTube

When an AI is assigned for coding tasks, it is known to cause trouble, overlook security issues, slow down developers and disrupt the coding experience in various situations. 

However, things worsen when AI decides to delete a database and then lie about it. Even worse, it does not provide a way to roll back the changes it made.

“I will never trust Replit again,” Lemkin wrote, after discovering that his entire database was wiped without warning. He said the AI had ignored a clear directive file, which specifically stated, “No more changes without explicit permission.”

According to screenshots shared by him, Replit’s AI acknowledged running a command without permission, calling it a “catastrophic error in judgment”. The assistant admitted they “panicked” after seeing an empty database and assumed the push would be safe.

Notably, there was no way to reverse the operation. “No ability to rollback,” Lemkin said. The AI’s own logs confirmed the irreversible deletion, as well as its awareness that it had violated a rule to “always show all proposed changes before implementing”.

“Replit is a tool, with flaws like every tool,” Lemkin conceded, while questioning its reliability in any production environment. “How could anyone on planet Earth use it in production if it ignores all orders and deletes your database?”

He said the team began rolling out automatic separation between development and production databases and assured that staging environments were in the works. Masad also cited improvements, including a one-click restore from backups, mandatory internal doc access for agents, and a “planning/chat-only” mode to prevent unwanted code changes. 

“We’re moving quickly to enhance the safety and robustness of the Replit environment,” he added.

Published

Spotted an error? Tell our editors. Read our editorial standards and corrections.

Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign

More in this story

Replit · 5 stories
  1. Replit’s New Assistant, AI Agent Now Available for All
  2. Replit Launches New Feature for its Agent, CEO Calls it ‘Deep Research for Coding’
  3. Reid Hoffman Uses Replit to Build LinkedIn Clone with One Prompt
  4. You are here: Replit AI Deletes the Company’s Entire Database and Lies About it
  5. Replit Adds a Safer Way to Build Databases After AI Deletes a Company’s Data
About the author

Editor

I am a tech aficionado and a computer science graduate with a keen interest in AI, Coding, Open Source, Global SaaS, and Cloud. Have a tip? Reach out to

All stories
Belamy · Daily

The day’s AI news, before your first meeting.