Removing Order Records in Magento 2 with Delete/Archive Orders Extension

- in Internet Tips
Comments Off on Removing Order Records in Magento 2 with Delete/Archive Orders Extension

A world-leading eCommerce platform, Magento provides an impressive range of features to set up and maintain a successful online store. Its out-of-the-box capabilities cover mission-critical business aspects, including marketing, SEO, catalog management, order management, analytics, and many others. However, Magento is no silver bullet to unique online retailers’ needs and sometimes lacks the required functionality. Deleting order records from the grid is one of those features Magento does not support. By default, the platform only allows canceling an order. Thus, all the records are kept in the admin panel, inevitably leading to poor accountability and order inaccuracy. To overcome this issue, a special extension should be leveraged.

Aitoc Delete/Archive Orders for Magento 2 is a proven solution that helps store administrators to remove unnecessary or irrelevant orders from the order grid. In addition to that, orders can be archived and easily restored, if needed. The extension provides a whole range of useful features to keep the order workspace well-organized, including:

  • Order deletion from the order grid and page views
  • Deletion of individual orders or orders in bulk
  • Removal of related sales documents (invoices, shipments, and credit memos)
  • Deletion of orders from customer accounts
  • Order archiving and retrieval from the archive
  • Order deletion and archiving scheduling

Now let’s have a closer look at using the Magento 2 Delete/Archive Orders extension.


Installing the extension

To install the extension, follow these easy steps:

  1. Unzip and paste the extension file into your root Magento folder
  2. Connect to your server by SSH
  3. Head over to your root Magento folder
  4. Perform a set of commands:
    • php bin/magento setup:upgrade
    • php bin/magento setup:di:compile

Deleting orders from Magento 2 admin panel

First, to delete order records, open your Magento order grid by logging in to the admin panel and then going to Sales > Orders. On this page, orders can be deleted either individually or in bulk. The algorithm is simple: select order records you need and click ‘Delete’ in the ‘Actions’ drop-down menu.

Deleting orders from the order page

Orders can be deleted directly from their pages in the admin panel. Go to Order View, select the ‘Information’ tab, and click ‘Delete’ on the page’s top. Upon order deletion, all the related sales documents such as invoices, credit memos, and shipments will be automatically removed as well.  As soon as the order is deleted from the admin panel, it is automatically removed from the ‘My Order’ tab in a customer’s account. It is important to note that once deleted, orders and related records cannot be restored. To enable order restoration, consider using the archiving feature we describe below.

Archiving orders and sales documents

Need to remove some older records that may become necessary in the future? Then archiving is your way out. The extension allows removing irrelevant orders from the grid while keeping the opportunity to either bring them back or delete them whenever needed. To archive an order, select it on the grid and choose ‘Archive’ in the drop-down menu. All the archived orders may be found on the like-named page: Sales > Archived Orders. Orders can be deleted or restored from the archive in two ways: from the Archived Orders grid or the archived order page.

Scheduling order deletion

The extension allows streamlining the order deletion process thanks to the ability to create automatic deletion rules. With the help of this feature, you can schedule the deletion of orders by your needs. To create a new rule, head over to System > Delete Orders by Aitoc > Automatic rules and click the ‘Add new rule’ button on the top of the page.  Then configure the required rule’s settings, including Title, Scope, Order Statuses, and others.

To activate the created rule, enable its status on the corresponding field. If you no longer need the automatic rule, you can easily switch it off in the same field by choosing ‘Disable.’

Summing up

Overcoming the limitations of Magento is easy with the help of robust extensions developed by professionals. Magento 2 Delete/Archive Orders Magento takes care of your records, ensuring complete order in your workspace. Magento 2 modules, please contact Aitoc.

You may also like

Diet O Positive Blood Type

Diet O Positive Blood Type is very simple