Type
magento2-module
This Magento 2 modules allows admin users to delete orders with all related information such as invoices, shipments and credit memos.
magento2-module
OSL-3.0
None
None
None
None
None
None
This Magento 2 modules allows admin users to delete orders including all related information such as invoices, shipments and credit memos via backend or command-line only.
A admin user can delete unwanted orders ( e.g test orders ) without having a developer / agency involved.
Delete
to the Actions
dropdown in the Sales > Orders
grid.magenizr:order:delete
.Restrict Order Status
in Stores > Configuration > Sales > Sales > Delete Orders
allows the admin user to limit the delete feature to specific order statuses only.A drop down Availability
can be used to limit the availability to Backend
, Command-Line
or Both
.
It clears all related order information which are stored in the following tables.
sales_invoice, sales_invoice_grid, sales_shipment, sales_shipment_grid, sales_creditmemo, sales_creditmemo_grid
System > Permissions > User Roles
. The ACL resource is Stores > Configuration > Delete Orders
.Stores > Configuration > Sales > Sales > Delete Orders
.Once the module is installed and enabled, a new option Delete
in the dropdown Actions
is available on Sales > Orders
. Once the popup message Are you sure you want to delete selected items?
is confirmed, the module will deleted selected items and display a success message Total of X order(s) were deleted successfully.
.
On command-line magenizr:order:delete
can be used to delete one or multiple ( comma separated ) order ids. For example:
bin/magento magenizr:order:delete 100000001
bin/magento magenizr:order:delete 100000001,100000002,100000003
bin/magento magenizr:order:delete 000000001,34234
Order ID 000000001 successfully deleted.
Order ID 34234 does not exist.
composer require "magenizr/magento2-deleteorders":"1.0.2" --no-update
composer update magenizr/magento2-deleteorders --no-install
to update your composer.lock file.Updating dependencies
Lock file operations: 1 install, 1 update, 0 removals
- Locking magenizr/magento2-resetuibookmarks (1.0.2)
composer install
to install the package.Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 1 install, 0 update, 0 removals
- Installing magenizr/magento2-deleteorders (1.0.2): Extracting archive
php bin/magento module:enable Magenizr_DeleteOrders --clear-static-content
tar -xzf Magenizr_DeleteOrders_1.0.2.tar.gz
../app/code/Magenizr/DeleteOrders/
.php bin/magento module:enable Magenizr_DeleteOrders --clear-static-content
php bin/magento setup:upgrade
If you experience any issues, don't hesitate to open an issue on Github. For a custom build, don't hesitate to contact us on Magento Marketplace.
This module is available for free on GitHub. If you purchase the module on Magenizr Shop or Magento Marketplace we offer 60 days free support, 90 days warranty and 12 month free updates.
Follow us on GitHub, Twitter and Facebook.
===== 1.0.2 ===== * Test 2.4.5 compatibility * Remove constraints in composer file * Change wording
===== 1.0.1 ===== * Command name renamed from magenizr:deleteorders to magenizr:order:delete
===== 1.0.0 ===== * Stable version