1. Home
  2. Docs
  3. Other Stores
  4. Shopify
  5. Automatically Delete/Archive the Duplicate Products Created by Impact Designer

Automatically Delete/Archive the Duplicate Products Created by Impact Designer

Follow the steps below to automatically delete/archive the duplicate products created by Impact Designer in your Shopify store:

1. The endpoint URL for accessing the clean-up of abandoned products functionality is:

/api/v1/duplicate-products?status=delete&days=7

2. The parameters mentioned in the above endpoint stand for:

status: Indicates the action to be performed on duplicate products. Accepted values are “delete” or “archive.”

days: Specifies the threshold for product abandonment in days. Products created before this threshold will be considered abandoned.

3. Respective parameter values can be modified as per requirements, for example:

StatusDaysEndpoint
delete7/api/v1/duplicate-products?status=delete&days=7
archive30/api/v1/duplicate-products?status=archive&days=30

4. Configure the CronJob below on your server to execute the endpoint with the desired parameters periodically, which can be done every midnight at 12 AM.

https://design.yourwebsite.com/designer/api/v1/duplicate-products?status=delete&days=7

Determine the appropriate frequency based on your store’s needs.

How can we help?