Skip to content

Latest commit

 

History

History

delete-the-oldest-x-products-from-a-specific-collection

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Delete the oldest x products from a specific collection

Tags: Collections, Delete, Products

Either triggered manually, or configured to run daily, this task will look for the oldest products in the collection of your choice, and delete as many of them as you wish.

Default options

{
  "collection_id__number_required": null,
  "number_of_products_to_delete_at_once__number_required": null,
  "test_mode__boolean": null,
  "run_daily__boolean": null
}

Learn about task options in Mechanic

Subscriptions

mechanic/user/trigger

{% if options.run_daily__boolean %}
  mechanic/scheduler/daily
{% endif %}

Learn about event subscriptions in Mechanic

Documentation

Either triggered manually, or configured to run daily, this task will look for the oldest products in the collection of your choice, and delete as many of them as you wish.

This task requires a collection ID - learn how to find yours.

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!