Trader Information
Back to topOverview
Back to topOrder Cleanup for Magento 2
Magento does not provide a built-in way to permanently delete orders. The Webandcrafts Order Cleanup extension adds secure and controlled order deletion functionality for administrators, helping keep the database clean and manageable.
This module allows you to permanently remove orders along with all related data, while ensuring safety through status restrictions, confirmations, and role-based permissions.
Key Features
- Permanent Order Deletion
- Completely delete orders instead of just canceling them
- Completely delete orders instead of just canceling them
- Mass & Single Delete
- Delete multiple orders directly from the Sales Order Grid
- Delete individual orders from the order view page
- Complete Data Cleanup
- Removes all associated records, including:
- Order items, addresses, payments, taxes
- Invoices, shipments, and credit memos
- Quotes and order status history
- Order grid entries
- Removes all associated records, including:
- Status-Based Restrictions
- Allow deletion only for selected order statuses (e.g. Canceled, Closed)
- Allow deletion only for selected order statuses (e.g. Canceled, Closed)
- Admin Safety Controls
- Confirmation dialog before deletion
- Enable/disable module via configuration
- Optional logging for audit purposes
- Access Control (ACL)
- Restrict order deletion permissions to specific admin roles
- Restrict order deletion permissions to specific admin roles
- Safe & Reliable
- Uses database transactions to ensure data integrity during deletion
- Uses database transactions to ensure data integrity during deletion
Configuration
Configure the module from:
Stores → Configuration → Webandcrafts → Order Cleanup
Available options:
- Enable / Disable module
- Select allowed order statuses
- Enable confirmation dialog
- Enable deletion logs
How It Works
Mass Delete
- Go to Sales → Orders
- Select orders from the grid
- Choose Delete Orders from Actions
- Confirm deletion
Single Order Delete
- Open an order from Sales → Orders
- Click Delete Order
- Confirm deletion
Compatibility
- Magento Open Source / Adobe Commerce 2.4.x
- PHP 8.1 – 8.3
Important Notes
- Deleted orders cannot be recovered
- Recommended to use only for canceled or closed orders
- Always take database backups before bulk deletions
Support & License
- Developed by Webandcrafts
- Licensed under OSL 3.0 / AFL 3.0
- Support available via official Webandcrafts channels
Technical Specifications
Back to topSeller profile
Seller contact
Current Version
1.0.0
Adobe Commerce platform compatibility
Magento Open Source: 2.4 (current)
Type
Stable Build
Updated
08 January, 2026
Categories
Extensions, Sales
Quality Report
Back to topAll tests were conducted on the latest versions of Adobe Commerce that existed for the compatible release lines at the moment of the extension submission. Latest versions of all other software were used, as applicable.
Release Notes
Back to top1.0.0:
- Compatible with Magento Open Source : 2.4
- Stability: Stable Build
-
Description:
Order Cleanup – Version 1.0.0
Release Date: 02 January 2026
Initial Release
The Order Cleanup module introduces a safe and controlled mechanism to permanently delete unwanted orders in Magento 2. Since Magento does not provide native support for order deletion, this module enables administrators to remove orders while enforcing strict access control and validation.
New Features
Single Order Deletion
Allows administrators to delete individual orders from the order view page.
Mass Order Deletion
Enables deletion of multiple orders at once from the Sales → Orders grid using a mass action.
Status-Based Deletion Restrictions
Order deletion can be restricted to selected order statuses such as Pending, Canceled, or Closed.
Comprehensive Data Removal
Automatically deletes all associated order data, including:
Order items, addresses, payments, and taxes
Invoices and invoice items
Shipments and shipment items
Credit memos and credit memo items
Related quotes
Order status history
Safety and Access Control
Confirmation dialog before deletion
Admin-only access enforced through ACL permissions
Optional Audit Logging
Logs order deletion actions for audit and traceability purposes.
Developer Extensibility
Dispatches events before and after order deletion:
webandcrafts_order_cleanup_before
webandcrafts_order_cleanup_after
Important Notes
Order deletion is permanent and cannot be undone.
A database backup is strongly recommended before using this module in a production environment.
Intended for administrative use only.
Compatibility
Magento Open Source / Adobe Commerce 2.4.x
PHP 8.1, 8.2, 8.3
License
This module is licensed under the Open Software License (OSL 3.0).
Free for personal and commercial use.
Support
Back to topThe best place to start if you need help with a specific extension is to contact the developer. All Adobe Commerce developers have both a contact email and a support email listed.
Contact Vendor