Powered by Adobe Commerce 2.4.8-p3

order.png

Order Cleanup

PRODUCT:
0
TOTAL:

Trader Information

Back to top

Overview

Back to top

Order 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
       
  • 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
         
  • Status-Based Restrictions
    • 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
       
  • Safe & Reliable
    • 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

  1. Go to Sales → Orders
  2. Select orders from the grid
  3. Choose Delete Orders from Actions
  4. Confirm deletion

Single Order Delete

  1. Open an order from Sales → Orders
  2. Click Delete Order
  3. 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 top

Seller profile

Jilu Joseph

Seller contact

E-mail

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

Documentation

User Guides

License Type

Open Software License 3.0 (OSL-3.0)

Policy

Privacy Policy

Quality Report

Back to top

Installation & Varnish Tests

Passed

Coding Standard

Passed

Plagiarism Check

Passed

Malware Check

Passed

Marketing Review

Passed

Manual Testing

Passed

All 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 top

1.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 top

The 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

Q & A

Back to top

Reviews

Back to top