ModKor Order Delete for Magento 2 & Hyva

Magento can cancel an order, but it can’t delete one. Test orders, spam and fraud attempts pile up in your Orders grid forever. ModKor Order Delete adds two actions to the grid: Archive (soft & reversible — hides an order but keeps every record, restorable in one click) and Delete permanently (removes the order and its invoices, shipments and credit memos, and cleans the grid tables Magento leaves behind). Separate permissions for archive vs delete, strong “cannot be undone” confirmations, optional restock, and a full audit log — all managed from one React screen. Free.
Email to a Friend
SKU
OrderDelete
$0.00
Requirement
  • Magento 2.4.8+ (Community Edition)
  • Hyva 1.4.6+ (License required)
  • Php 8.4+
  • Node 20+
12 Month Support Included
Free Installation Included

Finally delete orders in Magento — safely, and for free.

Magento Open Source lets you cancel or hold an order, but there is no built-in way to delete one. So every test order, spam order and fraud attempt stays in your Orders grid and your reports forever. ModKor Order Delete fixes that — with real guardrails, not a risky SQL query.

Two clear choices, right in the Orders grid

  • Archive — soft and fully reversible. Hides the order from the main grid but keeps every record. Perfect for clearing out clutter without losing data.
  • Delete permanently — removes the order and its invoices, shipments, credit memos and status history for good.
  • Both are mass actions: select one order or a hundred and act on them at once.

No orphaned grid rows — unlike a raw DELETE

  • The sales_order_grid, invoice, shipment and credit-memo grid tables have no foreign-key cascade, so a naive SQL delete leaves ghost rows behind.
  • Order Delete removes those rows explicitly, so a deleted order disappears cleanly from every grid.

Archived Orders & one-click Restore

  • Archived orders move to a dedicated Archived Orders screen with the order number, customer, total, status, and who archived it and when.
  • Restore brings any order straight back to the main grid — archive is never a one-way door.

Built to prevent accidents

  • Separate permissions for Archive & Restore and Delete Permanently — let staff archive while only managers can delete.
  • Strong “this cannot be undone” confirmations that spell out exactly what a delete removes and steer you toward Archive.
  • Optional restock — return item quantities to inventory when you delete.
  • Full audit log — every archive, restore and delete is recorded with the admin and the order numbers.

Compatibility

Magento Open Source / Adobe Commerce 2.4.x · PHP 8.1–8.4 · Hyvä & Luma admin · ModKor_Core (ships with the suite) · bundled React (no CDN) · 0 phpcs errors.