On a restorable test copy, prepare two fictional orders. Record their internal IDs, invoices, shipments and credit notes. With test integrations, record references to payments, ERP records and attachments as well. In Sales → Orders, select one test order.
Check what is removed and in what order
Bulk Order Deletion 1.0.0 removes invoices, shipments and credit notes before the order. The original controller ran against a local data model with 701 selected and 702 as the control. In a separate run, a shipment deletion error left 701 in place without its invoice. Bulk Order Deletion. Module documentation.
Compare documents by ID after the test
Check each document type in the copy. After an error, compare the state with your baseline and restore the copy before trying again. The table shows record counts in the local model.
| Record type | 701 before | 701 after success | 702 control after success | 701 after interruption |
|---|---|---|---|---|
| Order | 1 | 0 | 1 | 1 |
| Invoice | 1 | 0 | 1 | 0 |
| Shipment | 1 | 0 | 1 | 1 |
| Credit note | 1 | 0 | 1 | 1 |
For a cancellation or refund, follow the sales and payment workflow for the current order status. Check attachments, customer data and records in the ERP or with the payment provider separately. Adobe Commerce order workflow. Adobe Commerce refunds and credit notes.
For selecting test orders, see the earlier guide.
