Product or Variant Deletion
The product or variant deletion flow allows you to remove an entire product or a single variant.
In both cases, you must provide the sku of the variant to delete or, alternatively, the sku of any variant belonging to the product, so that it can be correctly identified.
If the product is not found, the operation still returns a Success result, in order to avoid errors in case the same message is sent multiple times.
If the product has only one variant, deleting that variant will automatically result in the deletion of the entire product.
Payload
Deleting the Entire Product
To delete a product (including all of its variants), use the following payload:
{
"sku": "BGSM001C210",
"deleteParent": true
}
Deleting Only the Specified Variant
To delete only the indicated variant:
{
"sku": "BGSM001C210",
"deleteParent": false
}
Deletion Flow Configuration
In addition to the basic data flow configuration, add the following settings under Settings Override:
| Field | Value | Notes |
|---|---|---|
Base Url | https://adapt.flowlyze.com | URL of the adapters |
Resource Path | /api/adp/shopify/egress/delete-product-to-shopify | Path of the adapter for the deletion flow |
Headers :: x-api-key | ********** | API key used to validate endpoint interaction |
Headers :: x-shopify-graphql-url | https://SHOPIFYURL.myshopify.com/ | URL of the Shopify store to connect to |
Headers :: x-shopify-access-token | shpat_ALPHANUMERICO | Secret of the custom app created for integration |
Headers :: x-shopify-client-id | YOUR_CLIENT_ID | Client ID of the integration app |
Headers :: x-shopify-client-secret | YOUR_CLIENT_SECRET | Client Secret of the integration app |