Orders

Delete stale draft orders after N days

Deletes draft orders that still exist after a configurable waiting period.

Setup guide

Before you start

This template watches new draft orders and deletes them after a configurable delay if they still exist.

Configure in setup

  • Delete after days: how long to wait before checking and deleting the draft order

Notes

  • If the draft order has already been deleted or converted, the workflow does nothing
  • The delay is scheduled at workflow runtime, so changing the setting only affects future draft orders

Setup fields

Delete after days
numberRequiredconfig

How many days to wait before re-checking and deleting the draft order if it still exists.