Delete Orders

With Magenizr / Delete Orders you can delete orders including all related information such as invoices, shipments and credit memos via backend or command-line.

Business Value

An admin user can delete unwanted orders ( e.g test orders ) without having a developer / agency involved.

  • A client support team, which usually has no access to the MySQL database can delete orders without having a developer involved.
  • Practical for small businesses, which can not afford expensive agency support.


  • A new option Delete to the Actions dropdown in the Sales > Orders grid.

  • A CLI command called magenizr:order:delete.

  • A list 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
  • The functionality can be restricted to specific roles via System > Permissions > User Roles. The ACL resource is Stores > Configuration > Delete Orders.
  • The configuration can be found in Stores > Configuration > Sales > Sales > Delete Orders.


Once the module is installed and enabled, a new massAction option Delete 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.

System Requirements

  • Magento 2.1.x, 2.2.x, 2.3.x
  • PHP 5.x, 7.x


  1. Extract the downloaded tar.gz file. Example: tar -xzf Magenizr_DeleteOrders_1.0.1.tar.gz.
  2. Copy the code into ./app/code/Magenizr/DeleteOrders/.
  3. Enable the module and clear static content.
php bin/magento module:enable Magenizr_DeleteOrders --clear-static-content
php bin/magento setup:upgrade

Contact & Support

For any enquiries or support requests, contact us directly at

Change Log

1.0.1 ( 2018/12/25 )

  • Command renamed from magenizr:deleteorders to magenizr:order:delete

1.0.0 ( 2018/09/24 )

  • Stable version


Magenizr EULA

Video & Screenshots


Delete Orders
$14.90 USD
90 Days
$0.00 USD
60 Days
$0.00 USD
12 Month
$0.00 USD
Included in Order Total

Order Total
$14.90 USD


Be the first to receive exclusive offers on our modules and services directly in your inbox.

* Required Fields


Need a quote for a custom module? Please email us at