Skip to content

Latest commit

 

History

History

delete-variants-having-a-metafield-date-that-has-passed

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Delete variants having a metafield date that has passed

Tags: Delete, Metafields, Schedule

Do you sell tickets to recurring events? Do you use a new product variant for each one? Use this task to regularly scan your catalog for product variants that have a date metafield, and to delete variants when their date has passed.

Default options

{
  "date_metafield_namespace__required": null,
  "date_metafield_key__required": null
}

Learn about task options in Mechanic

Subscriptions

mechanic/user/trigger
mechanic/scheduler/daily
mechanic/shopify/bulk_operation

Learn about event subscriptions in Mechanic

Documentation

Do you sell tickets to recurring events? Do you use a new product variant for each one? Use this task to regularly scan your catalog for product variants that have a date metafield, and to delete variants when their date has passed.

Run this task manually to immediately scan your product catalog for outdated variants, and delete them. This task will also run nightly, at midnight in your store's timezone.

Installing this task

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.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!