Magento 2 Extension

Delete Any Order 2

Delete orders safely and reliably from your Magento 2 database

Save removal of order data

Magento does not allow you to delete orders. While this decision makes good sense, many users are still in need of this functionality. Our Delete-Any-Order extension gives you this functionality in a safe way without danger of you loosing data and without leaving left-overs.

Already used in more than 1082 shops
  • 1 year of free composer updates & support
  • 100% open source and well-written
  • compliant with Magento standards
  • 14 day money-back guarantee
59
for 6 months

Easy to use

The Delete-Any-Order extension is quickly installed and after this, dead-easy to use: Simply zoom into an order and delete it - either via the orders grid or the order page.

Retaining integrity

Instead of just deleting orders, which is peanuts, Delete-Any-Order also ships with numerous ways to keep the database integrity intact. And checks if this is still the case.

Packages & pricing

We give you straight-forward functionality

Delete Magento orders without you needing to worry about it

Select an order & delete it

It sounds so simple: Selecting a Magento order and deleting it - either through a massaction option in the grid, or a button on the order page. However, Magento - by default - does not allow for this, because following bookkeeping terms this should not be allowed. But if Magento is not used for bookkeeping, this matters less. Our extension offers a fundamental feature that every shop owner might need.

Maintain database integrity

When removing an order, some things will still stick in the database: Grids are not updated, child entities will remain. This clutters your database and could lead potentially to corrupt databases. Our extension makes sure that all order-related information in the database remains intact. There are no left-overs. This makes our extension also GDPR-compliant: When a customer wants to be forgotten, our extension guarantees so.

Proper code quality

This extension is well-written, following current Magento coding standards (like ExtDN, ECG2 and MEQP2) and is 100% open source. Any developer is able to pick up its source code and extend it where needed. Additionally, we have tests in case that we run with every major and major Magento 2 release, to prevent bugs from reaching your shop. You can trust our code.



Tip: Use our EmailTester extension
to preview emails with dummy orders. Once you are done testing, just remove the orders again.

Extension screenshots

Quick Start to install your Yireo extension

Installation via composer URL

We recommend to install Magento 2 extensions via composer. See the Composer project for instructions on how to get composer up and running. Once composer is installed, use the following commands to install our extension. Make sure to add in your own subscription key.

composer config repositories.yireo-deleteanyorder2 composer https://api.yireo.com/composer.php/key,YOUR-LICENSE-KEY/
composer require yireo/magento2-deleteanyorder2

This will make composer download the package from our online composer repository, using your subscription key for authentication. After the composer installation has finished, use the following commands to enable the module within Magento:

bin/magento module:enable Yireo_DeleteAnyOrder2
bin/magento cache:clean
bin/magento setup:upgrade

After these commands, the extension is ready for use in Magento. If you were already logged into the Magento Admin Panel, make sure to logout and log back in again, before proceeding. Do not forget to grab yourself a manual copy of our extension as a backup.

Installation via composer artifact

We recommend to install Magento 2 extensions via composer. See the Composer project for instructions on how to get composer up and running. Once composer is installed, download the composer ZIP packages from this webpage under the File Downloads tab. Create a new folder packages within your Magento source and copy the ZIP packages to this new folder. Next, run the following commands (and make sure to include the right path to your Magento source):

composer config repositories.zip-packages artifact /path/to/magento/packages
composer require yireo/magento2-deleteanyorder2

Composer will search the packages folder for the latest available package. After the composer installation has finished successfully, use the following commands to enable the module within Magento:

bin/magento module:enable Yireo_DeleteAnyOrder2
bin/magento cache:clean
bin/magento setup:upgrade

After these commands, the extension is ready for use in Magento. If you were already logged into the Magento Admin Panel, make sure to logout and log back in again, before proceeding. Do not forget to grab yourself a manual copy of our extension as a backup.

Manual installation

Please note that we highly recommend using composer instead. However, in some cases, it might be required to do a non-composer installation. For this, download the module ZIP from our site (under the tab File Downloads). Next, create a folder with the following name and copy to the ZIP contents to it:

app/code/Yireo/DeleteAnyOrder2

After the files have been uploaded, confirm that all files are in place. For instance, you should have a file like app/code/Yireo/DeleteAnyOrder2/etc/module.xml. Next, use the following commands to enable the module within Magento:

bin/magento module:enable Yireo_DeleteAnyOrder2
bin/magento cache:clean
bin/magento setup:upgrade

After these commands, the extension is ready for use in Magento. If you were already logged into the Magento Admin Panel, make sure to logout and log back in again, before proceeding. Do not forget to grab yourself a manual copy of our extension as a backup.

File downloads

‚Äč
Name Version Download link
Login to see the packages available to you
Download

Frequently Asked Questions

No. However, if you are making money with building multiple shops, we appreciate it if you subscribe for multiple subscriptions. That way - in the spirit of open source - you can help us develop useful extensions for you.

In bookkeeping terms, it's not correct to remove orders or to leave a gap in your order numbering. At least, that's what some bookkeepers will tell you. If you use Magento as a bookkeeping system, you shouldn't be removing invoices or orders, so you shouldn't even be looking at this extension. However, if you have an alternative bookkeeping system, you can use this extension. Everything is fine (according to us) as long as the bookkeeping is consistent.

Our extension not only deletes orders, but also makes sure all order-related information is actually gone from the database: This way, your database remains intact, does not grow in size over the years and is compliant to EU regulation (GDPRs Right To Be Forgotten).

Delete-Any-Order does not deal with any Magento reports or Magento statistics (like the one on the dashboard of the Magento Admin Panel), and therefor, when removing any order, none of the already made statistics and reports are modified.

However, the dashboard statistics and newly created reports are generated from the database, and because Delete-Any-Order removes orders from the database completely, this is still working as it should. However, for issues with these statistics and reports, you most likely need to discuss this on the Magento Forums - unless you have grounded reason to believe that Delete-Any-Order has not removed an order correctly.

No, it is not. As a policy, all our Yireo software is unencrypted - we do not make use of technologies like ionCube or ZendOptimizer. All PHP-code is open source, but for commercial extensions the code is only given to paying customers.

Once you purchase this extension, you get access to the downloads for a period of time (normally 12 months). The downloads folder will contain both minor updates and major updates. You can always download the latest version of the extension at any time by logging into your Yireo Account - as long as you have a support subscription that did not expire yet. Likewise, for the period of the subscription, you can use composer to install the package from the command-line. If your subscription expired, you are required to purchase a new subscription to access new updates.

Once the subscription expires, the composer feed will not give you any access to the software anymore. We recommend you to download the latest ZIP file from our site and add this to your own private composer repository instead (BitBucket, GitHub) so you keep the latest sources available through composer.

Getting support

If you run into problems, we are happy to help you out with the following resources:

We definitely will respond within 72 hours, usually within 12 hours.

Code of proper quality

Delete-Any-Order is written following standards like PSR-2, MEQP2, ECG and ExtDN. You can hook into the event sales_order_delete_after.

If you want to intercept methods using a Plugin, please let us know, so we can mark it as @api and make sure your changes remain for the future.

Developer notes

This extension violates some standards of ECG and EQP because it uses raw SQL queries to scan the database. This is intentional to guarantee performance.

This extension has been tested with 150.000 orders (generated using the Magento Performance Toolkits extra_large profile).

Extension Changelog

1.0.2 (June 2018)

  • Properly add dependencies

1.0.1 (May 2018)

  • Tests with Performance Toolkit (extra_large)
  • Optimize DELETE queries

1.0.0 (March 2018)

  • Add Delete mass action in order grid
  • CLI to delete, analyse and fix
  • Composer package
  • Integration tests
  • Unit tests

We are a proud member of ExtDN

ExtDN forms a network of Magento extension developers, that strive for a better extension quality - both on a technical level and from an end-users point of view. With industry leaders like Fooman and aHeadworks, ExtDN lifts up the Magento extension space to a new level. And Yireo is proud to be part of this.