PHPackages                             mage2kishan/module-order-cleanup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mage2kishan/module-order-cleanup

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

mage2kishan/module-order-cleanup
================================

Panth Order Cleanup — safely delete test orders, invoices, shipments, and credit memos from Magento 2 with double verification, deletion logs, and admin-configurable safety controls. Keeps your order data clean and organized.

1.0.5(1mo ago)08proprietaryPHPPHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0

Since Apr 16Pushed 1mo agoCompare

[ Source](https://github.com/mage2sk/module-order-cleanup)[ Packagist](https://packagist.org/packages/mage2kishan/module-order-cleanup)[ Docs](https://kishansavaliya.com)[ RSS](/packages/mage2kishan-module-order-cleanup/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (10)Versions (7)Used By (0)

Magento 2 Order Cleanup: Delete Orders, Invoices and Shipments with Safety Controls and Audit Log
=================================================================================================

[](#magento-2-order-cleanup-delete-orders-invoices-and-shipments-with-safety-controls-and-audit-log)

[![Magento 2.4.4 - 2.4.8](https://camo.githubusercontent.com/079c832211eed4f9451ebe264e3865f825b0f9f31b041cbf03676c6e254535d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d322e342e342532302d2d253230322e342e382d6f72616e67653f6c6f676f3d6d6167656e746f266c6f676f436f6c6f723d7768697465)](https://magento.com)[![PHP 8.1 - 8.4](https://camo.githubusercontent.com/56b3cce18841623e2cbed2ebf09b06be1be8807e99e6e054a89d304ab4790b8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532302d2d253230382e342d626c75653f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://php.net)[![Admin Only](https://camo.githubusercontent.com/9e51fc6c9bef9168dd8c0cd81d9e9948cc6cb1de1a3ebae1f75c813510fcc85a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5468656d65732d41646d696e2532304f6e6c792d313462386136)](https://magento.com)[![Live Demo & Details](https://camo.githubusercontent.com/7c02915aac2f8b023d75b256e66801894671ef27adacd5bedf62fa813dfdb7a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c69766525323044656d6f25323025323625323044657461696c732d6d6167656e746f2d2d322d2d6f726465722d2d636c65616e75702d3044393438383f7374796c653d666c6174)](https://kishansavaliya.com/magento-2-order-cleanup.html)[![Packagist](https://camo.githubusercontent.com/cd050d0ca65387a4e36c985ded4ca18096786f6551be8618bcd8aea1bf58c719/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b61676973742d6d616765326b697368616e2532466d6f64756c652d2d6f726465722d2d636c65616e75702d6f72616e67653f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/mage2kishan/module-order-cleanup)[![Upwork Top Rated Plus](https://camo.githubusercontent.com/6f72584179420c41ed90432fd2579a4ed36199d4229e8181d20f353c1c4ee4eb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5570776f726b2d546f702532305261746564253230506c75732d3134613830303f6c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465)](https://www.upwork.com/freelancers/~016dd1767321100e21)[![Website](https://camo.githubusercontent.com/f1ae86d28e2b505aee60f240d3e5508e390b0a8dc7a9b7ecf1b450fad862053f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576562736974652d6b697368616e736176616c6979612e636f6d2d304439343838)](https://kishansavaliya.com)

> **Delete test orders and junk data from Magento 2 safely.** Panth Order Cleanup adds a delete button to every order view page, a mass delete action in the order grid, double confirmation with order ID verification, configurable safety controls over which data gets removed, and a permanent audit log that records every deletion.

**Product page:** [kishansavaliya.com/magento-2-order-cleanup.html](https://kishansavaliya.com/magento-2-order-cleanup.html)

---

Quick Answer
------------

[](#quick-answer)

**What is Panth Order Cleanup?** It is a Magento 2 extension that adds safe order deletion to the admin. Magento does not ship with order deletion. This module adds it with seven layers of safety controls so you can clean up test orders and junk data without risking real transactions.

**What does it add to my store?**

- A **delete button on every order view page** with configurable text and color.
- A **mass delete action** in the order grid for bulk cleanup.
- A **double confirmation modal** that requires typing the exact order number before deletion proceeds.
- **Configurable safety controls** over which related data (invoices, shipments, credit memos, payment transactions) gets removed.
- A **permanent deletion audit log** that records who deleted what, when, from which IP address, and by which method.

**Which themes are supported?** This is an admin-only module. It works the same on any frontend theme, whether Hyva, Luma, or custom.

**What does it need?** Magento 2.4.4 to 2.4.8, PHP 8.1 to 8.4, and the free `mage2kishan/module-core` package.

---

Need Custom Magento 2 Development?
----------------------------------

[](#need-custom-magento-2-development)

> **Get a free quote for your project in 24 hours** for custom modules, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.

 [ ![Get a Free Quote](https://camo.githubusercontent.com/eac8c45d21cff8b139ddc392325f3bd6c8266a6f3d7b23f15131c958f3d3c8d0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f476574253230612532304672656525323051756f74652532302545322538362539322d5265706c7925323077697468696e2532303234253230686f7572732d4443323632363f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/get-quote)

### Kishan Savaliya

[](#kishan-savaliya)

**Top Rated Plus on Upwork**

[![Hire on Upwork](https://camo.githubusercontent.com/b69353d3c6e192f4d03cc36bb8883612004e32f54dd2dbcc1e700dd791acd875/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486972652532306f6e2532305570776f726b2d546f702532305261746564253230506c75732d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465)](https://www.upwork.com/freelancers/~016dd1767321100e21)

100% Job Success - 10+ Years Magento Experience Adobe Certified - Hyva Specialist

### Panth Infotech Agency

[](#panth-infotech-agency)

**Magento Development Team**

[![Visit Agency](https://camo.githubusercontent.com/bbf04bdd2aff502082508568ec42ace3a7475c98756f596e2013056c89726ed6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56697369742532304167656e63792d50616e7468253230496e666f746563682d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465)](https://www.upwork.com/agencies/1881421506131960778/)

Custom Modules - Theme Design - Migrations Performance - SEO - Adobe Commerce Cloud

**Visit our website:** [kishansavaliya.com](https://kishansavaliya.com) | **Get a quote:** [kishansavaliya.com/get-quote](https://kishansavaliya.com/get-quote)

---

Table of Contents
-----------------

[](#table-of-contents)

- [Who Is It For](#who-is-it-for)
- [Key Features](#key-features)
- [Compatibility](#compatibility)
- [Installation](#installation)
- [Configuration](#configuration)
- [How It Works](#how-it-works)
- [Deletion Audit Log](#deletion-audit-log)
- [FAQ](#faq)
- [Support](#support)
- [About Panth Infotech](#about-panth-infotech)
- [Quick Links](#quick-links)

---

Who Is It For
-------------

[](#who-is-it-for)

- **Stores that ran test orders** during development and want to clear them before going live, without leaving dummy data in reports.
- **Merchants who received spam or fraud orders** and need a clean audit trail showing those records were intentionally removed.
- **Developers and agencies** who set up staging stores and need a quick way to clear order history between test runs.
- **Store owners who want control** over which admin users can delete orders, mass delete, and view the deletion log, all through Magento's ACL.
- **Any Magento store** that has accumulated junk data over time and wants a safe, logged way to remove it.

---

Key Features
------------

[](#key-features)

### Delete Button on Order View

[](#delete-button-on-order-view)

- **Configurable delete button** added to every order detail page, with custom text and color set from admin config.
- **Confirmation modal** shows all data that will be removed before anything is deleted.
- **Type-to-confirm** requires the admin to type the exact order increment ID before the delete button becomes active, the same pattern GitHub uses for repository deletion.

### Mass Delete from Order Grid

[](#mass-delete-from-order-grid)

- **Mass delete action** added to the order grid so you can select multiple orders and remove them in one step.
- **Confirmation dialog** before mass deletion, so selections can be reviewed.
- **Configurable safety limit** caps how many orders can be deleted in a single mass action (default: 50).

### Configurable Data Controls

[](#configurable-data-controls)

- **Choose what gets deleted** alongside the order: invoices, shipments, credit memos, and payment transactions are each individually toggleable.
- **Restrict by order status** so only orders with certain statuses (for example, Pending or Canceled) can be deleted. Processing or Complete orders stay protected.
- **Quote cleanup** removes the associated quote and its items, addresses, payment, and shipping rates.

### Deletion Audit Log

[](#deletion-audit-log)

- **Every deletion is logged** to the `panth_order_deletion_log` table with order details, customer name and email, grand total, status at deletion, admin username, IP address, deletion method (single or mass), and timestamp.
- **Log persists after deletion**, so the record remains for accounting and compliance even after the order data is gone.
- **Accessible from the admin menu** under Panth Infotech &gt; Order Cleanup &gt; Deletion Log.

### Safety Layers

[](#safety-layers)

- **Seven layers of protection**: ACL permissions, confirmation modal, type-to-confirm, status restrictions, mass delete limit, database transactions with rollback, and the permanent audit log.
- **Database transactions** wrap every deletion. If any step fails, everything rolls back, so partial deletions cannot happen.
- **Three ACL resources** control access separately: single order deletion, mass deletion, and log viewing.

### Admin-Only Module

[](#admin-only-module)

- **No storefront code** is added. This module has zero impact on your frontend performance or theme.
- **Works with any frontend** theme including Hyva and Luma.
- **Translation ready** using Magento's `__()` function.

---

Preview
-------

[](#preview)

### Mass Delete from Order Grid

[](#mass-delete-from-order-grid-1)

[![Mass Delete Orders](docs/mass-delete-action.png)](docs/mass-delete-action.png)

*Select multiple orders and choose "Delete Orders (Permanent)" from the mass actions dropdown.*

### Delete Button on Order View

[](#delete-button-on-order-view-1)

[![Delete Button on Order View](docs/delete-button-order-view.png)](docs/delete-button-order-view.png)

*A configurable "Delete This Order" button appears on every order detail page.*

### Double Confirmation Modal

[](#double-confirmation-modal)

[![Double Confirmation Modal](docs/double-confirmation-modal.png)](docs/double-confirmation-modal.png)

*Type the order number to confirm - prevents accidental deletions.*

### Deletion Audit Log

[](#deletion-audit-log-1)

[![Deletion Log Grid](docs/deletion-log-grid.png)](docs/deletion-log-grid.png)

*Every deletion is logged with order details, admin user, IP address, method, and timestamp.*

### Admin Configuration

[](#admin-configuration)

[![Admin Configuration](docs/admin-configuration.png)](docs/admin-configuration.png)

*Full control over button appearance, safety requirements, allowed statuses, and mass delete limits.*

---

Compatibility
-------------

[](#compatibility)

RequirementVersions SupportedMagento Open Source2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8Adobe Commerce2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8Adobe Commerce Cloud2.4.4 to 2.4.8PHP8.1.x, 8.2.x, 8.3.x, 8.4.xFrontend ThemeAny (admin-only module)Required Dependency`mage2kishan/module-core` (free)---

Installation
------------

[](#installation)

### Composer Installation (Recommended)

[](#composer-installation-recommended)

```
composer require mage2kishan/module-order-cleanup
bin/magento module:enable Panth_Core Panth_OrderCleanup
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
```

### Manual Installation via ZIP

[](#manual-installation-via-zip)

1. Download the latest release from [Packagist](https://packagist.org/packages/mage2kishan/module-order-cleanup) or from the [product page](https://kishansavaliya.com/magento-2-order-cleanup.html).
2. Extract it to `app/code/Panth/OrderCleanup/` in your Magento install.
3. Make sure `Panth_Core` is installed too (required dependency).
4. Run the commands above starting from `bin/magento module:enable`.

### Verify Installation

[](#verify-installation)

```
bin/magento module:status Panth_OrderCleanup
# Expected: Module is enabled
```

After install, open:

```
Admin -> Sales -> Orders  (mass delete action in the grid)
Admin -> any order view   (delete button on the page)
Admin -> Panth Infotech -> Order Cleanup -> Deletion Log
Admin -> Stores -> Configuration -> Panth Extensions -> Order Cleanup

```

---

Configuration
-------------

[](#configuration)

Go to **Stores -&gt; Configuration -&gt; Panth Extensions -&gt; Order Cleanup**.

### General

[](#general)

SettingGroupDefaultDescriptionEnable Order CleanupgeneralYesMaster toggle for all order deletion features.### Delete Button on Order View

[](#delete-button-on-order-view-2)

SettingGroupDefaultDescriptionShow Delete Button on Order ViewbuttonYesAdd a delete button to every order detail page.Button TextbuttonDelete This OrderText shown on the delete button.Button Colorbutton\#DC2626Hex color for the delete button background.### Safety and Data Controls

[](#safety-and-data-controls)

SettingGroupDefaultDescriptionRequire Confirmation ModalsafetyYesShow a confirmation popup before deleting any order.Require Typing Order ID to ConfirmsafetyYesAdmin must type the exact order increment ID before deletion is allowed.Delete Related InvoicessafetyYesAlso delete all invoices tied to the order.Delete Related ShipmentssafetyYesAlso delete all shipments tied to the order.Delete Related Credit MemossafetyYesAlso delete all credit memos tied to the order.Delete Related Payment TransactionssafetyYesAlso delete all payment transactions tied to the order.Keep Deletion LogsafetyYesLog every deletion with order details, admin user, IP address, and timestamp.Allowed Order Statuses for Deletionsafetycanceled, closed, holded, pending, fraudOnly orders with these statuses can be deleted. Leave empty to allow all statuses.### Mass Delete

[](#mass-delete)

SettingGroupDefaultDescriptionEnable Mass Delete Actionmass\_actionYesAdd a delete option to the mass actions dropdown in the order grid.Require Confirmation for Mass Deletemass\_actionYesShow a confirmation dialog before mass deleting orders.Maximum Orders Per Mass Actionmass\_action50Cap on how many orders can be deleted in a single mass action.---

How It Works
------------

[](#how-it-works)

### Single Order Deletion

[](#single-order-deletion)

1. Admin opens an order detail page.
2. Clicks the **Delete This Order** button.
3. Confirmation modal appears showing all data that will be removed.
4. Admin types the order increment ID to confirm (if that setting is on).
5. Clicks **Yes, Permanently Delete**.
6. Module checks: module enabled, order status allowed, ACL permission present.
7. A database transaction begins.
8. Related data is deleted in this order: invoices, shipments, credit memos, payment transactions, order items, addresses, payments, status history, tax, and quote data.
9. The order and its order grid record are deleted.
10. Transaction is committed.
11. Deletion is written to the audit log.
12. Admin is redirected to the order grid with a success message.

### Mass Deletion

[](#mass-deletion)

1. Admin selects orders in the order grid.
2. Chooses **Delete Orders (Permanent)** from the mass actions dropdown.
3. Confirmation dialog appears with a warning.
4. Module checks the safety limit (default: 50 orders maximum).
5. Each order is processed through the same single-deletion flow.
6. A summary message reports success and failure counts.

---

Deletion Audit Log
------------------

[](#deletion-audit-log-2)

Open **Panth Infotech -&gt; Order Cleanup -&gt; Deletion Log** to view all deletions.

The log is stored in the `panth_order_deletion_log` table and captures:

FieldDescriptionOrder #The deleted order's increment ID.CustomerCustomer name at time of deletion.EmailCustomer email address.Grand TotalOrder total with currency.Status at DeletionOrder status when it was deleted.ItemsNumber of items in the order.Invoices DeletedWhether invoices were also deleted.Shipments DeletedWhether shipments were also deleted.Deleted ByAdmin username who performed the deletion.Method"single" from the order view, or "mass" from the grid.IP AddressAdmin user's IP address.Deleted AtExact timestamp of deletion.The log persists permanently. Even after order data is gone, the log record remains for accounting, compliance, and dispute resolution.

---

FAQ
---

[](#faq)

### Is this safe to use on a live production store?

[](#is-this-safe-to-use-on-a-live-production-store)

Yes. The module includes seven layers of safety controls: ACL permissions, confirmation modal, type-to-confirm, status restrictions, mass delete limit, database transactions with automatic rollback, and a permanent audit log. It was designed with production use in mind.

### Can I recover a deleted order?

[](#can-i-recover-a-deleted-order)

No. Deletion is permanent. The module keeps a snapshot in the deletion log (customer name, email, totals, item count, timestamps), which can serve as an audit record. There is no undo. Back up your database before using this on a store with real order history.

### Does it delete from third-party extension tables?

[](#does-it-delete-from-third-party-extension-tables)

No. The module only removes from core Magento sales and quote tables. Records added by other extensions (ERP sync logs, custom shipping tables, etc.) may be left as orphaned rows. Check with your other extension vendors if this matters.

### Does deleting orders affect reports?

[](#does-deleting-orders-affect-reports)

Yes. Deleted orders are no longer in Magento reports because the data no longer exists. The deletion log can serve as an alternative record for accounting purposes.

### Can I control which admin roles can delete?

[](#can-i-control-which-admin-roles-can-delete)

Yes. The module registers three separate ACL resources. Assign them per role under System -&gt; Permissions -&gt; User Roles:

- `Panth_OrderCleanup::delete_order` for the single delete button.
- `Panth_OrderCleanup::mass_delete` for mass deletion from the grid.
- `Panth_OrderCleanup::view_log` for viewing the deletion log.

### Does it work with Hyva storefronts?

[](#does-it-work-with-hyva-storefronts)

Yes. This is an admin-only module. It has no frontend code, so it works the same regardless of which storefront theme you use.

### What happens if a deletion fails halfway through?

[](#what-happens-if-a-deletion-fails-halfway-through)

The entire deletion rolls back. Every deletion is wrapped in a database transaction, so either all related data is removed cleanly, or nothing changes at all. An error message is shown and the system log has the details.

### Can I change the delete button text and color?

[](#can-i-change-the-delete-button-text-and-color)

Yes. The Button Text and Button Color fields in the Delete Button group under Configuration let you set any text and any hex color for the button.

### Does the module add a scheduled job?

[](#does-the-module-add-a-scheduled-job)

Yes. There is a cron job that sends a periodic heartbeat check. It does not auto-delete any orders. All deletions are always manual admin actions.

---

Support
-------

[](#support)

ChannelContactProduct Page[kishansavaliya.com/magento-2-order-cleanup.html](https://kishansavaliya.com/magento-2-order-cleanup.html)EmailWebsite[kishansavaliya.com](https://kishansavaliya.com)WhatsApp+91 84012 70422GitHub Issues[github.com/mage2sk/module-order-cleanup/issues](https://github.com/mage2sk/module-order-cleanup/issues)Upwork (Top Rated Plus)[Hire Kishan Savaliya](https://www.upwork.com/freelancers/~016dd1767321100e21)Upwork Agency[Panth Infotech](https://www.upwork.com/agencies/1881421506131960778/)Response time: 1-2 business days.

### Need Custom Magento Development?

[](#need-custom-magento-development)

Looking for **custom Magento module development**, **Hyva theme work**, **store migrations**, or **performance tuning**? Get a free quote in 24 hours:

 [ ![Get a Free Quote](https://camo.githubusercontent.com/0d9512dc4f89ef40179e9f650fd0786b6bc846d289ab2cb04a223a43f2833eeb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f254630253946253932254143253230476574253230612532304672656525323051756f74652d6b697368616e736176616c6979612e636f6d2532466765742d2d71756f74652d4443323632363f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/get-quote)

 [ ![Hire on Upwork](https://camo.githubusercontent.com/fad56e8be7896e39593f090cd2ed32e6bf86b4b6e75974cf292aee99d45f5077/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486972652532304b697368616e2d546f702532305261746564253230506c75732d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465) ](https://www.upwork.com/freelancers/~016dd1767321100e21) [ ![Visit Agency](https://camo.githubusercontent.com/fdf45a9d937d72b896f5e2557337d47efebc0e06b7ad4d4c162c0a64375a62fa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56697369742d50616e7468253230496e666f746563682532304167656e63792d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465) ](https://www.upwork.com/agencies/1881421506131960778/) [ ![View Product Page](https://camo.githubusercontent.com/1b0dbb455c2886b87faccce81f6de38d136a6d994c76674b3e31ebacbf63d07b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5669657725323050726f64756374253230506167652d6d6167656e746f2d2d322d2d6f726465722d2d636c65616e75702d3044393438383f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/magento-2-order-cleanup.html)

---

About Panth Infotech
--------------------

[](#about-panth-infotech)

Built and maintained by **Kishan Savaliya** ([kishansavaliya.com](https://kishansavaliya.com)), a **Top Rated Plus** Magento developer on Upwork with 10+ years of eCommerce experience.

**Panth Infotech** is a Magento 2 development agency that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on our [Magento extensions page](https://kishansavaliya.com/magento-extensions.html) or on [Packagist](https://packagist.org/packages/mage2kishan/).

---

Quick Links
-----------

[](#quick-links)

ResourceLink**Product Page**[magento-2-order-cleanup.html](https://kishansavaliya.com/magento-2-order-cleanup.html)**Packagist**[mage2kishan/module-order-cleanup](https://packagist.org/packages/mage2kishan/module-order-cleanup)**GitHub**[mage2sk/module-order-cleanup](https://github.com/mage2sk/module-order-cleanup)**Website**[kishansavaliya.com](https://kishansavaliya.com)**Free Quote**[kishansavaliya.com/get-quote](https://kishansavaliya.com/get-quote)**Upwork (Top Rated Plus)**[Hire Kishan Savaliya](https://www.upwork.com/freelancers/~016dd1767321100e21)**Upwork Agency**[Panth Infotech](https://www.upwork.com/agencies/1881421506131960778/)**Email****WhatsApp**+91 84012 70422---

 **Need to clean up test orders from your Magento store?**
 [ ![See Order Cleanup](https://camo.githubusercontent.com/83904f6d9c51d79a8966e923786af36bc8cad6bbf3b3b48d1a798632d700470a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2546302539462539412538302532305365652532304f72646572253230436c65616e75702532302545322538362539322d50726f647563742532305061676525323025323625323044657461696c732d4443323632363f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/magento-2-order-cleanup.html)

---

**SEO Keywords:** magento 2 delete orders, magento 2 order cleanup, magento 2 order cleanup extension, magento 2 remove test orders, magento 2 mass delete orders, magento 2 order deletion extension, magento 2 delete invoices shipments, magento 2 order audit log, magento 2 order management extension, magento 2 delete order safely, magento order cleanup module, magento 2 double confirmation delete, magento 2 order status restriction, magento 2 acl order delete, magento delete order admin, magento 2 order deletion log, panth order cleanup, panth infotech, mage2kishan order cleanup, hire magento developer, top rated plus upwork, kishan savaliya magento, custom magento development, magento 2.4.8 delete orders, php 8.4 magento order cleanup

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance91

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

6

Last Release

36d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/343e344aa298f189db888b32d62f9202d31ced1a5ea23411850a63dc4a30299c?d=identicon)[kishansavaliya](/maintainers/kishansavaliya)

---

Top Contributors

[![KishanSavaliya](https://avatars.githubusercontent.com/u/16853223?v=4)](https://github.com/KishanSavaliya "KishanSavaliya (9 commits)")

---

Tags

magento2order managementmagento2 modulepanthdelete-ordersorder-cleanupremove-orderstest-orders

### Embed Badge

![Health badge](/badges/mage2kishan-module-order-cleanup/health.svg)

```
[![Health](https://phpackages.com/badges/mage2kishan-module-order-cleanup/health.svg)](https://phpackages.com/packages/mage2kishan-module-order-cleanup)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[zwernemann/module-withdrawal

Magento 2 EU Withdrawal Button Module - Adds a withdrawal/revocation button for orders in compliance with EU Directive (EU) 2023/2673

256.0k2](/packages/zwernemann-module-withdrawal)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
