Bulk Order Deletion
Composer kowal/module-deletemassorder · Version 1.0.0
Product page
Bulk Order Deletion — kowal.co
Description
Add a bulk action for deleting selected orders from the Admin grid. The module deletes the order’s invoices, shipments and credit memos before removing the order itself.
For whom
For administrators cleaning up test data in an environment where the selected orders and their documents can be permanently removed.
Features
- Select records through the orders grid.
- Confirm the Delete Order action.
- A dedicated Admin role permission controls execution.
Installation
From the Magento root, with Composer access to the Kowal package, run
composer require kowal/module-deletemassorder
bin/magento module:enable Kowal_DeleteMassOrder
bin/magento setup:upgrade
bin/magento cache:clean
Configuration
- After installation, open System → Permissions → User Roles and check the order delete permission in the module’s group.
- In Sales → Orders, locate a disposable test order by number and select its row. Check that the selection does not include other filtered results.
- Choose Delete Order from the mass actions menu. Before confirming, verify the selected records and the availability of a restorable backup.
Requirements / notes
Deletion permanently removes data, including related sales documents. Orders are processed sequentially. After an interruption, establish which orders and documents remain before attempting another run.
FAQ
Will deleting an order void its payment or issue a refund through the payment provider?
No. The module deletes Magento records. Payment reversal and refunds require a separate payment workflow.
Verify the installation
bin/magento module:status Kowal_DeleteMassOrder
On a restorable test copy, prepare two disposable orders and select one. Confirm deletion, compare the message with the grid and check that the selected order’s documents are gone while the other order remains accessible.