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

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

- in Internet Tips
304
0

A world-leading ecommerce platform, Magento provides an impressive range of features to setup 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 to cancel 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 on how to use the Magento 2 Delete/Archive Orders extension.

 

 

READ MORE ARTICLES : 

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

To delete order records, first open your Magento order grid by logging in to the admin panel and then go 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.

/var/folders/j6/vyc5g1qd4n3_9rrl0v9cj6nw0000gn/T/com.microsoft.Word/WebArchiveCopyPasteTempFiles/orders-workspace-1.png

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 top of the page.

Upon order deletion, all the related sales documents such as invoices, credit memos and shipments will be automatically removed as well. /var/folders/j6/vyc5g1qd4n3_9rrl0v9cj6nw0000gn/T/com.microsoft.Word/WebArchiveCopyPasteTempFiles/delete-order-from-its-page-1.png

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 order 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 from the archived order page.

/var/folders/j6/vyc5g1qd4n3_9rrl0v9cj6nw0000gn/T/com.microsoft.Word/WebArchiveCopyPasteTempFiles/archived-orders-1.png

Scheduling order deletion

The extension allows streamlining the order deletion process thanks to the ability of creating automatic deletion rules. With the help of this feature, you can schedule the deletion of orders in accordance with 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. /var/folders/j6/vyc5g1qd4n3_9rrl0v9cj6nw0000gn/T/com.microsoft.Word/WebArchiveCopyPasteTempFiles/order-rules-1.png

Then configure the required rule’s settings, including Title, Scope, Order Statuses, and others.

 

/var/folders/j6/vyc5g1qd4n3_9rrl0v9cj6nw0000gn/T/com.microsoft.Word/WebArchiveCopyPasteTempFiles/new-rule-1.png

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.

To purchase Magento 2 Delete/Archive Orders and explore more Magento 2 modules please contact Aitoc.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like

4 Ideas Of Hobbies To Take On

If you have been looking at ways that