PHPackages                             runelaenen/sw6-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. [Admin Panels](/categories/admin)
4. /
5. runelaenen/sw6-order-cleanup

ActiveShopware-platform-plugin[Admin Panels](/categories/admin)

runelaenen/sw6-order-cleanup
============================

Adds an admin button to clear all placed orders, documents and reset number generators

v6.1.1(3mo ago)2341MITPHP

Since Mar 24Pushed 2w agoCompare

[ Source](https://github.com/runelaenen/sw6-order-cleanup)[ Packagist](https://packagist.org/packages/runelaenen/sw6-order-cleanup)[ RSS](/packages/runelaenen-sw6-order-cleanup/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Order Cleanup
=============

[](#order-cleanup)

A Shopware 6 plugin for clearing all placed orders, documents and resetting number generators. Useful for resetting development or staging environments to a clean state.

Features
--------

[](#features)

- Deletes all orders and related data (line items, transactions, deliveries, addresses)
- Deletes all order documents (invoices, credit notes, delivery notes, cancellations)
- Deletes document media files (PDFs) from the media library
- Resets order-related number range counters (`order`, `document_invoice`, `document_storno`, `document_delivery_note`, `document_credit_note`) so numbering restarts from the configured start value
- Available via a dedicated admin page and a CLI command

Requirements
------------

[](#requirements)

- Shopware 6.6

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

[](#installation)

```
composer require runelaenen/sw6-order-cleanup
bin/console plugin:install --activate OrderCleanup
bin/console cache:clear
bin/build-administration.sh # Or comparable command
```

Usage
-----

[](#usage)

### Admin

[](#admin)

Navigate to **Settings → System → Order Cleanup**. Click **Clear all orders** and confirm the dialog.

> **Warning:** This action is irreversible and will permanently delete all order data.

### CLI

[](#cli)

```
bin/console order-cleanup:clear
```

To skip the confirmation prompt (e.g. in scripts):

```
bin/console order-cleanup:clear -n
```

What gets deleted
-----------------

[](#what-gets-deleted)

DataDetailsOrders`order` and all sub-tables (line items, transactions, deliveries, addresses, etc.)DocumentsInvoices, credit notes, delivery notes, cancellationsDocument mediaPDF files from the media libraryNumber range statesReset to configured start value for order and document types onlyProduct and customer number ranges are **not** affected.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance91

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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 ~1 days

Total

3

Last Release

92d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3930922?v=4)[Rune Laenen](/maintainers/runelaenen)[@runelaenen](https://github.com/runelaenen)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/runelaenen-sw6-order-cleanup/health.svg)

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

###  Alternatives

[shopware/administration

Administration frontend for the Shopware Core

404.2M106](/packages/shopware-administration)[shopware/storefront

Storefront for Shopware

674.4M209](/packages/shopware-storefront)[shopware/production

177202.8k](/packages/shopware-production)[frosh/tools

Provides some basic things for managing the Shopware Installation

86783.3k3](/packages/frosh-tools)[shopware/elasticsearch

Elasticsearch for Shopware

143.8M15](/packages/shopware-elasticsearch)[frosh/adminer-platform

Adminer for Shopware

1147.9k](/packages/frosh-adminer-platform)

PHPackages © 2026

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