Bulk Order Deletion for Magento 2
- Compatibility
- 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.0, 2.3.7, 2.3.6, 2.3.5, 2.3.4
Description / Bulk Order Deletion for Magento 2
Delete Multiple Orders from the List in the Magento Admin Panel
Kowal DeleteMassOrder adds a bulk deletion action to the standard order list. Administrators can select specific records and delete them in a single operation—useful for cleaning up test orders or incorrectly created data.
What the Operation Includes
- A Delete Order action in the bulk actions menu on the order list.
- Support for selecting orders using the standard Magento selection and filtering mechanisms.
- Deletion of associated invoices, shipments, and credit memos before the order is deleted.
- A confirmation dialog before the operation begins.
- A message showing the number of deleted orders and errors, followed by a return to the order list.
- Access control through the administrator permission
Kowal_DeleteMassOrder::order_delete.
How to Use the Module
- Open Sales → Orders and select the orders you want to delete.
- Choose Delete Order.
- Review your selection and accept the confirmation dialog.
- When the operation is complete, review the results message.
Deletion is permanent and includes associated sales documents. Back up your data before proceeding and make sure that the correct records are selected. The module processes orders directly within the admin panel request, so the batch size should be adjusted to match the server capacity.
Installation and Administrator Access
Composer package: kowal/module-deletemassorder; module: Kowal_DeleteMassOrder. Installation from a ZIP file in the app/code/Kowal/DeleteMassOrder.
After installation, run php bin/magento module:enable Kowal_DeleteMassOrder, followed by php bin/magento setup:upgrade and php bin/magento cache:flush. In production mode, follow the standard store deployment procedure; the module documentation specifies the --keep-generated option for updates.
Grant order deletion permission to the appropriate administrator roles. The module uses the standard Sales → Orders list.
More Information
| Theme compatibility | Luma / Blank, KOWAL |
|---|
Questions and Answers
Does the module allow filtering orders before deletion (e.g., by status, date, customer)?
Does deleting orders with this feature also delete related data (e.g., invoices, refunds, customer data)?
Does installing the module require modifying Magento core files or theme files?
Does the module work efficiently in stores with a very large number of orders?
After deleting orders, is it possible to restore them?
Does this affect the performance of the store or admin panel?
Do I receive technical support and updates after purchasing the module?
Which versions of Magento 2 is the module compatible with?
Module Installation Instructions
Installation
* In a production environment, please use the option --keep-generated
Type: Composer
-
The module is available in the Composer repository:
- Private GitLab repository:
https://gitlab.com
- Private GitLab repository:
-
Add the Composer repository to your configuration:
composer config repositories.delete.mass.order vcs https://gitlab.com/magento2ext/magento-2-delete-mass-order -
Add the access token for the private GitLab repository:
composer config --auth gitlab-token.gitlab.com <TWÓJ_TOKEN> -
Install the module using Composer:
composer require kowal/module-deletemassorder -
Apply the database updates:
php bin/magento setup:upgrade -
Clear the cache:
php bin/magento cache:flush