Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7439981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:47:01+00:00 2026-05-29T10:47:01+00:00

We have an install that is currently running Magento CE v1.5 (it has been

  • 0

We have an install that is currently running Magento CE v1.5 (it has been upgraded over time, I think it started on approximately 1.1). The sales_flat_quote table currently has upward of 550,000 rows in it. A large percentage of these have a null customer_id and are many months old. I can’t think of a reason to keep them around, since they are old and not associated with a customer there is assumably no way anybody can ever get access to that quote again.

It seems strange that Magento doesn’t seem to have a built in functionality for removing what seems like junk information (they do have a cron for removing quotes, but as far as I can tell, it only removes quotes that are set to is_active false, which as far as I can tell only happens when a quote is converted to an order).

Essentially, what I’m asking is…
a.) Is it safe to delete these entries?
b.) What is the best way of doing it (pure sql, via model, some option in the control panel I’ve missed, etc.)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:47:02+00:00Added an answer on May 29, 2026 at 10:47 am

    We’ve had several sites that needed the order information cleared after going from dev to production. We did it by truncating the sales_flat_* and several other tables. We didn’t have any problems with it. However, I recommend testing any direct database edits on a COPY of your database.

    You can also delete records from sales_flat_quote even if you don’t delete the corresponding order records or other tables in sales_flat_*. You should probably only delete records in the quote table that are more than 30 days old though, so that customers will have access to recent carts.

    Here is a very helpful post from the Magento Commerce Forums. http://www.magentocommerce.com/boards/viewthread/1680/P405/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a currently running PHP application that I want to add real-time feed
I have an ASP.NET 4 application that has been in production for years running
I have a c# .NET 2.0 application that has been running on W2K/IIS5 quite
I have a windows service (currently running under Windows 2003 Server) that needs to
I have a private Rails app that I'm trying to install locally. It's currently
i have written a small codeigniter test app that is currently running on my
We have an app that currently installs itself into 'program files\our app', and it
We have multi-part install that needs a reboot to continue. We added a RunOnce
I have a WiX install project that includes IIS setings for virtual directory and
Does anyone have a good Drupal upgrade strategy for an install that is in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.