# mavenbird/module-delete-order

> Magento 2 module for deleting orders, providing admins with the ability to manage and clean up orders.

`composer require mavenbird/module-delete-order`

Canonical URL: https://packagento.com/mavenbird/module-delete-order

## At a glance

- **Vendor**: mavenbird (https://packagento.com/mavenbird.md)
- **Latest version**: 1.1.1 — released 2026-01-07
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/mavenbird/module-delete-order and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require mavenbird/module-delete-order:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Magento 2 module for deleting orders, providing admins with the ability to manage and clean up orders.

## README


Simplify your Magento 2 store management with the ability to easily delete orders. Our Magento 2 Delete Order Extension enhances the efficiency of managing order data, allowing you to remove unwanted orders quickly and effortlessly.

### Key Features:

- **Delete Orders:**
Easily delete single or multiple orders directly from the admin panel.
- **Batch Processing:**
Support for batch deletion of multiple orders at once.
- **Confirmation Prompts:**
Ensure accuracy with confirmation prompts before deletion.
- **Detailed Logs:**
Keep track of deleted orders with comprehensive logs for auditing purposes.
- **User Permissions:**
Control access to delete order functionality with customizable user permissions.
- **Delete Invoices:**
Delete selected invoices from the backend directly via the admin panel, streamlining invoice management.
- **Delete Shipments:**
Remove unwanted shipments from the backend, helping you keep shipment data clean.
- **Delete Credit Memos:**
Easily manage and delete unwanted credit memos directly from the backend.

### Benefits:

- **Efficient Order Management:**
Streamline the process of managing orders, saving time and reducing manual effort.
- **Clean Order Data:**
Maintain clean order data by removing unwanted or test orders.
- **Secure Operations:**
Minimize errors with confirmation prompts and detailed logs.
- **Customizable Permissions:**
Ensure only authorized users can delete orders with customizable permissions.
- **Improved Invoice Management:**
Keep your invoice records organized by removing irrelevant or erroneous invoices.
- **Simplified Shipment Data:**
Eliminate unnecessary shipments, ensuring your data remains accurate and up to date.
- **Optimized Credit Memo Handling:**
Quickly clean up credit memo data, helping you maintain an accurate order history.

### Compatibility:
This extension is compatible with Magento 2.4.X (PHP - 8.1 - 8.3) version.

### Installation:
*Install via composer (recommend)* - 

Easy installation process with step-by-step instructions provided for hassle-free setup.
~~~~~~~~~~~~~~~~~~~~~
composer require mavenbird/module-delete-order
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
~~~~~~~~~~~~~~~~~~~~~

### Upgrade/Update Module:
Run the following command in Magento 2 root folder for easy update -
~~~~~~~~~~~~~~~~~~~~~
composer update mavenbird/module-delete-order
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
~~~~~~~~~~~~~~~~~~~~~

### Customization Options:
Tailor the delete order process to match your store's specific requirements with customizable permissions and logging options.

![img3](./doc/images/3.png)
![img4](./doc/images/4.png)
![img5](./doc/images/5.png)
![img6](./doc/images/6.png) 
![img7](./doc/images/7.png)

### Support:
Dedicated support team available to assist with installation, customization, and any other queries or concerns.
*[support@mavenbird.com](mailto:support@mavenbird.com)* 

### Get Started:
Simplify the management of your order data with our Magento 2 Delete Order Extension. Enhance efficiency, ensure data cleanliness, and streamline your workflows today!

*Thank you!*

## Changelog

1.1.1 – December 30, 2025
=============
* Upgraded for compatibility with Magento 2.4.8-p3.
* Verified and compatible with PHP version 8.3.
=======
1.1.0 - September 1, 2024
=============
* Minor Bug Fixes

1.0.7 – May 13, 2024
=============
* Compatible with Magento Version 2.4.7-p3.

1.0.6 – March 6, 2024
=============
* Compatible with Magento Version 2.4.3

1.0.5 – March 16, 2023
=============
* Compatible with Magento Version 2.4.2

1.0.4 – September 13, 2022
=============
* Compatible with Magento Version 2.4.1

1.0.3 – April 15, 2022
=============
* Compatible with Magento Version 2.4.0
* Small code adjustments.

1.0.2 – May 11, 2020
=============
* Updated for improved compatibility with Magento versions 2.3 and 2.4.

1.0.1 – January 25, 2019
=============
* Fully compatible with Magento 2.0, 2.1, 2.2, and 2.3 Community Edition. 

1.0.0 – February 19, 2018
=============
* Release Initial Version.

## Recent Versions

| Version | Released |
|---|---|
| 1.1.1 | 2026-01-07 |
| 1.0.7 | 2025-04-29 |
| 1.0.0 | 2024-08-22 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| mavenbird/module-core | * |
| php | >=8.0.0 |

## Quality

Latest release (1.1.1) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 8 | 8 warnings (ruleset: Magento2) |
| PHPMD | Pass | 0 |  |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 2 | valid; 2 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 88 | 88 | – | – |
| 2.4.8 | – | 88 | 88 | – |
| 2.4.9 | – | – | 88 | 88 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["mavenbird/module-delete-order"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

mavenbird is a Magento 2 vendor on Packagento. See https://packagento.com/mavenbird.md for their full catalogue.

