Magento 2 extension

Delete Orders & Clean Up

Remove test or unwanted orders from the admin, completely. An order goes with its invoices, shipments, credit memos, payment records, history and cart, and reserved stock is released. Single invoices, shipments and credit memos can also be deleted with the order recalculated. A bulk clean-up with a dry run clears test orders by date, status, store view, customer email pattern or group, and every deletion is logged.

$25 one-time licence

What it does

Remove test or unwanted orders from the admin, completely. An order goes with its invoices, shipments, credit memos, payment records, history and cart, and reserved stock is released. Single invoices, shipments and credit memos can also be deleted with the order recalculated. A bulk clean-up with a dry run clears test orders by date, status, store view, customer email pattern or group, and every deletion is logged.

Administrators can permanently remove test or unwanted orders together with their invoices, shipments, credit memos, payment records, history and, optionally, the inactive cart, leaving nothing in the sales grids. A Delete action appears in the order, invoice, shipment and credit memo grids, with a Delete button on each record page, both confirmed first. Reserved stock is released, and a single invoice, shipment or credit memo can be removed with the order amounts recalculated. The Order Clean-up page under Sales > Operations deletes orders in bulk by date, status, store view, customer e-mail pattern or group, after a dry run that counts matches, and every deletion is logged. In Stores > Configuration you choose which statuses may be deleted, protect paid orders and keep JSON copies. The storefront does not change. For example, a shop that ran test checkouts before launch can clear every order from *@example.com in one pass.

Features

  • Delete action in the order grid and Delete button on the order page, each with a confirmation
  • Removes the order's invoices, shipments, credit memos, grid rows, payment, tax, downloadable links and cart
  • Releases stock the order still reserved, so the salable quantity returns
  • Delete a single shipment, invoice or credit memo; order amounts, quantities and status step back
  • Refuses unsafe cases with a clear reason: status not allowed, paid and not refunded, invoice with a credit memo
  • Bulk clean-up with a dry-run count per status and a limit per click
  • Choose which statuses may be deleted; protect orders that still hold money
  • Deletion log with administrator, time, number, total and a downloadable copy without card data
  • Separate permissions for orders, invoices, shipments, credit memos, clean-up and log

Good to know

Deletion is permanent and never refunds the customer. Stock already deducted by a shipment is not returned when the shipment or order is deleted, so cancel or return stock first. Take a backup before a bulk clean-up.

Screenshots

Delete Orders & Clean Up screenshot 2
Delete Orders & Clean Up screenshot 3
Delete Orders & Clean Up screenshot 4
Delete Orders & Clean Up screenshot 5

Installation

After purchase you get the package and the PDF user guide. Install it with Composer, or ask us to install it for you:

composer require modvanta/module-delete-orders
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

Delete Orders & Clean Up: questions

Which Magento versions does Delete Orders & Clean Up support?

Magento Open Source and Adobe Commerce 2.4 (developed and tested on 2.4.9), with PHP 8.1 to 8.5 and Luma-based themes. If your store runs Hyva or a headless front end, tell us first and we check it before you buy.

How much does Delete Orders & Clean Up cost?

$25 as a one-time payment for one Magento installation. You get the full source code and a PDF user guide. There is no yearly fee.

How do I install Delete Orders & Clean Up?

With Composer: composer require modvanta/module-delete-orders, then bin/magento setup:upgrade. We can also install and configure it on your store.