Magento 2

Order Eraser

Order Eraser allows you to simply clean your sales database by deleting useless orders, linked invoices and all linked data in one go.

marketplace approved
free
Free

4.7/5 rated 82 reviews

  • Lifetime license
  • 12 months support & upgrade
  • 60 days money-back guarantee
  • Extensible source code
  • Unlimited test domains
  • Free composer access

Clean your sales database with Order Eraser for Magento 2

  • The extension will automatically delete the orders you've selected, the invoices, and all linked data.

Quickly and massively delete orders

  • Select the orders you want to delete in Magento 2
  • Receive a notification when the orders have been deleted
  • Automatically delete invoices and other data linked to the orders

Content

    How to use Order Eraser on Magento 2

    STEP 1: Install the Order Eraser extension

    To install the Order Eraser extension in your Magento 2 back office, you need to:

    1. Before installing the extension, it's advisable to backup your Magento 2 installation.
    2. Then, you need to refresh caches in:
      System › Tools › Cache Management
    3. Now, you can download the zipped extension from:
      your Wyomind account › LICENSES & DOWNLOADS
    4. Once you have downloaded it, unzip the folder content.
    5. Copy the app folder and paste it into the Magento 2 root directory. You can merge the directories.
    6. Open a console and run the following command on the Magento 2 root directory:
      bin/magento setup:upgrade​
    7. Once your installation is complete, don't forget to clear the cache and log in again.

    If you are working on Magento 2.0.x, you'll have to rename:
    Wyomind\OrderEraser\view\adminhtml\ui_component\sales_order_grid_Mage_2.0.xml

    Into:
    Wyomind\OrderEraser\view\adminhtml\ui_component\sales_order_grid.xml

    STEP 2: Use the Order Eraser extension

    With Order Eraser for Magento 2, you can clean your sales database in one go. The extension will automatically delete:

    • the orders you've selected
    • the linked invoices
    • all linked data

    The extension can be ready to use from your Magento 2 back-office in a few minutes only.

    After having installed the extension, go to:
    Sales › Operations › Orders

    There you have many possibilities to delete your orders.

    Tick all the orders you want to delete, from the Actions dropdown, choose Delete. A popup is displayed, click on OK.

    A notification should be displayed at the top of your admin saying that your orders have been deleted from your Magento 2 admin.

    You can also delete one order at a time either by clicking on Delete from the Delete column or by clicking on Delete directly in the order view.

    In the case where the order(s) that you have deleted was/were linked to some invoices or credit memos, these latter will also be removed.

    FAQ

    Pre-sales informations

    Magento Open Source vs Magento Commerce vs Magento Commerce Cloud

    Magento offers three variations of its product.

    As their names have changed over the past few years, here is a recap:

    • Magento Open Source: previously Magento Community Edition (CE), is a free and non-hosted e-commerce platform.
    • Magento Commerce: previously Magento Enterprise (EE), is the paid version of Magento and offers support services.
    • Magento Commerce Cloud: is the paid version of Magento and offers support and hosting services.

    License and domains

    License validity

    A license is valid for an unlimited period of time on one single installation

    • If you're using more than one installation, you will have to buy a separate license for each instance.
    • if you're running several domains on a same installation, you will need only one license for all of them.
    Although your license doesn’t have a limited period of validity, your Support & Upgrade period does. By purchasing a module, you’ll be granted a 12-month support period for free. Passed this period, you will have to pay for a new one (see FAQ: Extend your Support period)
    Domains pre-registration

    You can pre-register your live domain to your license in advance.

    Thanks to this option, you'll be able to get the module ready to use on your domain before it goes live.

    To pre-register your production domain: 

    1. Go to:
      mY account › Licenses & DOwnloads
    2. Click on the Settings icon next to the module you want your domain to pre-register on.
    3. Click on the link at the bottom of the page saying:
      Do you want to pre-register your domain in order to be ready to go live?
    4. Finally, enter your domain name and click on pre-register now .

    Testing environments

    One license is valid for an unlimited period of time on one installation only. However, it is possible to extend or transfer your license in 2 cases: 

    • If you would like to add your testing environments to your license. 
      In that case, it is possible to extend your license to an unlimited number of domains for free.
      For  mywebsite-staging.com or mywebsite-dev.com
    • If you want to transfer your license to another live domain.
      In that case, the Support & Upgrade period for your license must still be active.

    To be able to use Order Eraser on both your production and testing environments, follow the instructions below:

    1. Download Order Eraser.
      (see FAQ: Extensions download)
    2. Install Order Eraser on your environment.
      (see FAQ: Modules installation in Magento or in WooCommerce)
    3. Activate the license.
      (see FAQ: Licenses activation in Magento or in WooCommerce)
    Also, if you are managing a large amount of domains, please contact us so that we can automatically whitelist these domains.

    Modules versioning and download

    Extensions download

    In order to download Order Eraser, log into your Wyomind account:

      1. Go to:
        my account › Licenses & downloads 
      2. Click on the settings icon next to Order Eraser.

        A new window opens.

      3. Click on the download icon.

    Only the latest extension version released within your Support & Upgrade period is available. In order to get the very latest extension version make sure your Support & Upgrade plan is up to date.

    Modules upgrade

    When purchasing a module from wyomind.com, you benefit from 12 months of upgrade. Within this period you can at any time download the latest version of the module directly from your account.

    To upgrade Order Eraser, follow the steps below:

    1. Go to:
      my account › Licenses & Downloads
    2. Click on the settings icon next to Order Eraser.
    3. Click on the download icon.
    4. Install the new version of Order Eraser in your Magento admin or your WooCommerce back-office.

    Modules Installation/Uninstallation

    Extensions manual installation

    You can install Order Eraser manually.

    1. Download Order Eraser (zip file) on:
      mY ACCOUNT › Licenses & Downloads 
      Refer to the FAQ: Extensions download
    2. Once Order Eraser is downloaded, open the folder and unzip it.
    3. Copy the content of the unzipped folder and paste all files and directories in your Magento 2 root directory.
    4. In your Command Line Interface, execute:
      bin/magento setup:upgrade 

      If you are using a production mode, execute also:

      bin/magento setup:static-content:deploy  
      bin/magento setup:di:compile  
    Extensions installation via Composer

    You can install Order Eraser using Composer software in two cases:

    • if you purchased Order Eraser on Magento Marketplace.
    • if you purchased Order Eraser on Wyomind.com AND requested access to our repository:
      repo.wyomind.com
    1. Add to your composer configuration our repository:
      composer config repositories.wyomind composer https://repo.wyomind.com 

    2. Execute Composer command:
      composer require wyomind/ordereraser
    3. Then go in your Command Line Interface and execute:
      bin/magento setup:upgrade ​
    4. If you are using a production mode, also execute:
      bin/magento setup:static-content:deploy  ​
      bin/magento setup:di:compile​
    Extensions uninstallation

    To uninstall Order Eraser, start with disabling the extension running the following command:

    bin/magento module:disable Wyomind_OrderEraser

    Then, you have 2 ways to uninstall the extension depending on how the extension has been previously installed: 

    • Manual installation

      Run the ordereraser-uninstall.sh file (you can find it in the extension zip folder) from your Magento root directory:

      sh ordereraser-uninstall.sh
    • Installation via Composer

      Run the below command line:

      composer remove wyomind/ordereraser

    Once the uninstallation is over, refresh your cache and enable the compiler back again (if you use it). 

    Extensions installation via Web Setup Wizard

    You can install Order Eraser via Web Setup Wizard if you purchased it from Magento Marketplace only.

    To know how to proceed, all steps are described in the link below: 
    http://docs.magento.com/m2/ce/user_guide/system/component-manager.html

    Next step is to activate your license:
    Extension activation

    Modules activation

    Extensions activation from the back-office of Magento

    Once Order Eraser is installed, you have to activate the license. For previous versions, you can activate the license from your back-office:

      1. Go to your Magento admin panel. A message pops up at the top of the page.
        If the message doesn't appear then you must check that:

           1. The Adminhtml_Notifications and Wyomind_Core modules are well enabled.
           2. The HTML output of the Adminhtml_Notifications and Wyomind_Core modules are not disabled in:
        storesconfigurationadvanced advanced
           3. The encryption key well exists in app/etc/env.php:
        <?php
         return array(
         'backend' => array(
         'frontName' => 'admin'
         ),
         'crypt' => array(
         'key' => '1e8f3c6772b7a6a6689c3c8cefa4ccf0'
         ),
         /* ... */
         )
        ?>​
      2. Copy your activation key in:
        Stores › Configuration › Wyomind › Your extension

        You can find your activation key in 2 different places:
        -  In the confirmation email that you received after purchasing Order Eraser.
        -  In your Wyomind account: My account › Licenses & downloads
        Select Order Eraser and click on  .

        A new page opens where you'll find your activation key (see below).
      3. In your Magento admin go to:
        Stores › Configuration › Wyomind › Your extension

        Paste the activation key in the Activation Key field and choose between the automatic (yes) or the manual (no) activation method:
        -  By choosing Yes, the connection to Wyomind license server will be automatic.
        -  By choosing No, you will have to log on to Wyomind license server yourself.
      4. Click on Save config .
      5. A message appears at the top of your admin panel. Click on that link: 
        Activate it now!
      6. Copy and paste the license code in the License code field from your admin or simply click on  Activate now! 

      7. Finally, refresh your cache, log out and log in back straight after, to complete the installation.

    Add another domain to your license


    To activate the license on another domain (test, staging...):

    1. Once the extension is installed on the new domain, copy your activation key in:
      Stores › Configuration › Wyomind › Your extension
    2. After having saved the configuration, a notification appears. Click on Add this domain to my license.

    3. A transfer request will then be sent to our team within an hour.
      Once the request is taken care of, you will receive a confirmation email.
      If your transfer request is accepted, you can use Order Eraser on both environments at the same time.

    Note that the order in which you activate your license on your domains does not matter. You can start with your staging/dev/local environment or with your live domain, the process will be the same.

    Also, if you have loads of staging domains, or if you are an agency managing load of domains for your customers, please contact us so that we can automatically whitelist these domains.
    Extensions activation from the CLI

    Once Order Eraser is installed, you have to activate the license.

    For this, you can use the below command line (change the Activation key with the corresponding value):

    bin/magento wyomind:license:activate Wyomind_OrderEraser <YOUR_ACTIVATION_KEY>

    To retrieve the list of all the available modules as well as the licenses status, please use:

    bin/magento wyomind:license:status

     Among the different status, you can find: 

    • registered = your license is registered
    • pending = you need to run the activation command line
    • invalidated = the license has been invalidated due to a wrong activation key or a license infringement

    To activate several licenses at the same time, use:

    bin/magento wyomind:license:activate \
    Wyomind_Extension1,Wyomind_Extension2 \
    ACTIVATION_KEY_1,ACTIVATION_KEY_2

    or:

    bin/magento wyomind:license:activate \
    Extension1,Extension2 \
    ACTIVATION_KEY_1,ACTIVATION_KEY_2

    Check how to add another domain to your license.

    User's reviews

    Samuel

    Merchant · France · User for 4 years

    ★★★★★

    Un plugin efficace

    Un plugin simple, efficace et en plus gratuit. Avec en plus un service client pertinent qui vous accompagne malgré la gratuité du produit, chapeau bas messieurs !

    May 2, 2022Magento 2

    Denis

    Merchant · Kazakhstan · User for 6 years

    ★★★★★

    Very useful extention

    Very useful extention. I don't understand, why Magento team doesn't use this functionality by default. Order Eraser allows you to simply clean your sales database

    Easy

    United States · User for 8 years

    ★★★★★

    Nice Tool, But Invoices & Shipments Are Not Being Deleted

    I tried your too, and it works very nice. All of my orders were deleted quickly, but the invoices & shipment records still stay. I tried re-indexing, and cleaning the cache but no help. I used it on Magento 2.2.3.

    April 30, 2018

    benhiggins

    ★★★★★

    Excellent, very easy & worked first time!

    Very easy to install in magento connect on magento 1.9, worked first time. Does exactly what it says, I highly recommend!

    December 7, 2016

    jehzlau

    ★★★★★

    Works with Magento 1.9.3.1!

    Works with Magento 1.9.3.1! The fastest and most efficient solution to delete all orders.

    November 15, 2016

    Eurostep

    ★★★★★

    Well working plugin and super fast support!

    We had some problems with permissions and Wyomind support solved with super fast support!
    I strongly recomend this product!

    September 19, 2016

    BillRust

    ★★★★★

    EXCELLENT!!!

    Extension worked straight away, excellent job! I have seen may extensions that do this that cost money, it's awesome this developer is giving it away for free! Had my test orders deleted within seconds of installing extension!

    September 14, 2016

    VijayaTech

    ★★★★★

    Working as described

    Simple and easy.
    Working as expected in the admin panel.
    I tested it on my testing server.
    Yet to deploy in the production site.
    Recommended.
    But still need to check data in the underlying tables.

    September 2, 2016

    robydog0413

    ★★★★★

    Dont Work

    I installed on Magento 1.9.2.4
    Admin Option i can see but in the Order Grid i dont see in Actions the Option Delete
    What is Wrong?

    July 18, 2016

    dominikz

    ★★★★★

    excellent...

    works like promised
    easy to use
    time saver
    thx a lot!

    July 6, 2016

    LukeConrad

    ★★★★★

    A must-have for any Magento store

    Works seamlessly with Magento 1.9.2.4. A must-have extension.

    June 22, 2016

    WilsonBS

    ★★★★★

    Perfect

    It worked very well in the latest version of magento. My version 1.9.2.4

    June 10, 2016

    danigv

    ★★★★★

    Good but it has a permission problem

    The module is good but it has a permission problem in Magento 1.9.2.4: The class Wyomind_Orderseraser_Adminhtml_OrderseraserController must override the _isAllowed method so not superadmin users can access the order deleting functionality.
    The solution is to add this code in the class:
    protected function _isAllowed() {
    return Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete');
    }
    As a suggestion, It would be useful to have a confirmation dialog in the mass action as well, and some configuration option to disable the module.
    Anyway, in general it is good.

    April 25, 2016

    omnisity

    ★★★★★

    Worked For me!

    This really helped me out, as a magento newbie, couldn't find where to remove/delete orders. Google search suggested writing scripts, or accessing the various tables, which I wasn't confident in implementing.
    We had lots of test orders which we didn't want to leave in place and I'm not sure why delete isn't an option right out of the box, but this plugin works and I now have a clean orders dashboard!
    I'm running CE version 1.9.4 and it's installed and worked for me.

    March 30, 2016

    holykim66

    ★★★★★

    Very useful extension.

    It works like a charm! Successfully removed test orders in few seconds. One thing that I would like to suggest to Wyomind to make enable/disable feature. Thanks

    March 18, 2016

    Charlie721

    ★★★★★

    Action "Delete orders" doesn't show

    I installed it, I checked if the extension is enabled and it is. When I go to orders and want to select Delete orders the action doesn't appear in drop box.
    Did I miss something?
    I am using Magento 1.9.2.0
    Thanks

    March 2, 2016

    Ugodavis

    ★★★★★

    Very helpfull extension!

    Very helpfull extension and quick and professional support !
    Magento Release 1.9.2.0

    February 10, 2016

    Blair Geddes

    ★★★★★

    Works perfectly as described

    Only feedback I would leave, is that even after the orders are deleted, their values still stay in the sales reports. So the deleted orders still stay in your sales totals essentially. So referring to the Reports > Sales > Orders section in admin area. They don't appear on your dashboard totals. Deleted fine from that.

    February 4, 2016

    Timburr

    ★★★★★

    Useful and Easy Extension

    Awesome. Delete them one by one, ore in a batch, they are gone.

    January 8, 2016

    WRed

    ★★★★★

    great

    thanks for great extension. Only this extension help

    January 4, 2016

    Magento 2 Compatibility

    Supported by our master extension versions

    • 2.4.8
    • 2.4.7
    • 2.4.6
    • 2.4.5
    • 2.4.4
    • 2.4.3
    • 2.4.2
    • 2.4.1
    • 2.4
    • 2.3.7
    • 2.3.6
    • 2.3.5
    • 2.3.4
    • 2.3.3
    • 2.3.2
    • 2.3.1
    • 2.3

    Supported by our legacy extension versions

    • 2.2.11
    • 2.2.10
    • 2.2.9
    • 2.2.8
    • 2.2.7
    • 2.2.6
    • 2.2.5
    • 2.2.4
    • 2.2.3
    • 2.2.2
    • 2.2.1
    • 2.2
    • 2.1.18
    • 2.1.17
    • 2.1.16
    • 2.1.15
    • 2.1.14
    • 2.1.13
    • 2.1.12
    • 2.1.11
    • 2.1.10
    • 2.1.9
    • 2.1.8
    • 2.1.7
    • 2.1.6
    • 2.1.5
    • 2.1.4
    • 2.1.3
    • 2.1.2
    • 2.1.1
    • 2.1
    • 2.0.18
    • 2.0.17
    • 2.0.16
    • 2.0.15
    • 2.0.14
    • 2.0.13
    • 2.0.12
    • 2.0.11
    • 2.0.10
    • 2.0.9
    • 2.0.8
    • 2.0.7
    • 2.0.6
    • 2.0.5
    • 2.0.4
    • 2.0.3
    • 2.0.2
    • 2.0.1
    • 2.0

    Changelog

    8.0.1

    8.0.0

    Initial release for the master version

    7.0.0 legacy

    Initial release for the legacy version

    6.0.0

    Compatibility

    • Compatibility with Php v8.2

    5.5.0

    Improvement

    • Apply database upgrade and database install from patches instead of the setup scripts
    • Remove drop table instruction in setup patches

    5.4.4

    • Fix when deleting orders in bulk from the orders grid

    5.4.3

    • Minor fix on code

    5.4.2

    • Minor fix on code

    5.4.1

    • Minor fix on code

    5.4.0

    Improvement

    • Improved license management system (Clear code)

    5.3.3

    • Fix for permissions on the Delete option

    5.3.2

    • Addition of Helper/OrderEraser (automatically generated)

    5.3.1

    • Compatibility fix for Magento 2.3.3

    5.3.0

    • Compatibility fix for Magento 2.3.3

    5.2.0

    Improvement

    • Magento v2.2.1 compatibilty

    Patch v5.2.0.4

    • Sample data available for the demo

    Patch v5.2.0.3

    • Sample date available for the demo

    Patch v5.2.0.2

    • Fix on mass delete action

    Patch v5.2.0.1

    • Fix on the mass action use with filters

    5.1.0

    Bug fix

    • Fix on Mass action delete 

    Improvement

    • ACL (Access Control List) added

    5.0.4

    Bug fix

    • Filters applied to orders are taken into account for mass action
      Only filtered orders will be deleted  

    5.0.2

    Improvement

    • composer file updated

    5.0.1

    Bug fix

    • Fix when deleting an order from the order view

    5.0.0

    • 1st release for Magento 2

    Feature request

    Specific needs or any ideas of enhancements and new features to add to the extension? Tell us more, we'll get back to you shortly!

    Thank you

    That’s a wrap.

    We will get back to you as soon as possible.

    You may also like