---
title: 'ERP Reservation Cleaner'
url: 'https://info.srv.kowal.co/docs/magento/modules/reservation-cleaner'
markdown: 'https://info.srv.kowal.co/docs/magento/modules/reservation-cleaner.md'
lang: en
date: '2026-11-30'
description: 'Count reservations for selected stocks in log-only mode. Check how open orders affect salable quantity before scheduling a cleanup after an ERP import.'
taxonomy:
  category:
    - docs
    - Magento
    - Modules
  tag:
    - inventory
    - erp
---

# ERP Reservation Cleaner

**Composer** `kowal/reservation-cleaner` · **Version** 1.0.2

## Product page

[ERP Reservation Cleaner — kowal.co](https://kowal.co/kowal-reservation-cleaner-for-magento-2)

## Description

Count or clear Magento MSI stock reservations in stores where an ERP or WMS supplies the authoritative stock figures.

## For whom

For administrators reconciling stock after an ERP import who know how outstanding Magento orders are reflected in the source data.

## Features

- Count reservations in log\_only mode.
- Limit operations to selected MSI stocks.
- Run from CLI or cron with a lock against overlapping runs.

## Installation

From the Magento root, with Composer access to the Kowal package, run

```sh
composer require kowal/reservation-cleaner
bin/magento module:enable Kowal_ReservationCleaner
bin/magento setup:upgrade
bin/magento cache:clean
```

## Configuration

1. Under **Stores → Configuration → Kowal → ERP Reservation Cleaner**, select **Mode → log\_only**, choose the allowed environment and enable the module.
2. Select the stocks to reconcile under **Selected Stocks**. Verify the selection before setting the cron hour and minute.
3. If clearing after an import, arrange for the job to run after ERP synchronisation completes. Configure any required reindex or cache clean separately.

## Requirements / notes

Removing reservations can change salable quantity even when physical stock stays the same. Before enabling a mode that writes changes, establish whether the ERP figures already account for open Magento orders.

## FAQ

**Does clean\_after\_erp\_sync wait for an import completion signal?**

This mode performs a cleanup similar to full\_reset. Your scheduler or ERP integration must ensure that the import completes first.

## Verify the installation

```sh
bin/magento module:status Kowal_ReservationCleaner
```

On staging, run `bin/magento kowal:reservation:clean --mode=log_only --stocks=1`, replacing 1 with the intended stock ID. Compare the reported row count with reservations for that stock and confirm that its salable quantity stays unchanged.

---

## Navigation

- Parent: [Magento 2 Extensions](https://info.srv.kowal.co/docs/magento/modules.md)
- Previous: [Mass Translate by ChatGPT](https://info.srv.kowal.co/docs/magento/modules/mass-product-translate-by-chatgpt.md)
- Next: [Sales Units and Price Conversion](https://info.srv.kowal.co/docs/magento/modules/unit-pricing.md)
