Skip to content

Latest commit

 

History

History

delete-all-products

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Delete all products

Tags: Delete, Products

Use this task to quickly (and permanently) clear out your product list. Optionally, filter by a specific query, so as to only delete specific products from your store. Supports a test mode, allowing you to see exactly what products you can expect Mechanic to delete.

Default options

{
  "query": "",
  "test_mode__boolean": true,
  "live_mode__boolean": false
}

Learn about task options in Mechanic

Subscriptions

mechanic/user/trigger

Learn about event subscriptions in Mechanic

Documentation

Use this task to quickly (and permanently) clear out your product list. Optionally, filter by a specific query, so as to only delete specific products from your store. Supports a test mode, allowing you to see exactly what products you can expect Mechanic to delete.

Use this task to quickly clear out your product list.

Caution: if you leave the query option empty, this task will delete every product in your store.

Use the "query" setting to get specific about what products you want to delete. Tick the "Test mode" checkbox to verify which products will be deleted: after saving, use the "Run task" button to run the product scan, and you'll receive a list of products that Mechanic would have deleted in live mode. Once you're ready, uncheck the "Test mode" box and check the "Live mode" box, save the task, then use "Run task" to permanently delete all matching products.

Example queries:

  • product_type:Shirt
  • tag:old

Learn more:

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!