Tags: Delete, Draft Orders, Schedule
Keep your draft order list tidy - use this task to automatically delete orders that are older than a configurable number of days.
- View in the task library: tasks.mechanic.dev/delete-draft-orders-older-than-30-days
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"days_to_wait_before_deleting_a_draft_order__number_required": "30",
"test_mode__boolean": true,
"run_daily__boolean": null
}
Learn about task options in Mechanic
mechanic/user/trigger
{% if options.run_daily__boolean %}mechanic/scheduler/daily{% endif %}
Learn about event subscriptions in Mechanic
Keep your draft order list tidy - use this task to automatically delete orders that are older than a configurable number of days.
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!