Tags: Draft Orders, Orders
Use this task to quickly delete draft orders from your account, optionally filtering by status, or by draft order age. Useful for keeping things tidy. :)
- View in the task library: tasks.mechanic.dev/clean-up-draft-orders
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"delete_open_draft_orders__boolean": null,
"delete_draft_orders_that_have_invoices_sent__boolean": null,
"delete_completed_draft_orders__boolean": null,
"minimum_draft_order_age_in_days__number": null,
"run_daily_at_midnight__boolean": null
}
Learn about task options in Mechanic
mechanic/user/trigger
{% if options.run_daily_at_midnight__boolean %}
mechanic/scheduler/daily
{% endif %}
Learn about event subscriptions in Mechanic
Use this task to quickly delete draft orders from your account, optionally filtering by status, or by draft order age. Useful for keeping things tidy. :)
Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!