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
}
Destination configuration
Configure a Shopify destination and associate it with the flow, in addition to the basic data flow configuration.
| Field | Value | Notes |
|---|---|---|
Destination Type | Shopify | |
Operation | Delete product | POST /egress/delete-product-to-shopify |
GraphQL endpoint URL | https://SHOPIFYURL.myshopify.com/ | Shopify Admin GraphQL endpoint URL |
Admin API access token | shpat_CODICEALFANUMERICO | Or Client ID (API key) + Client secret — see Authentication |
Client ID (API key) | YOUR_CLIENT_ID | |
Client secret | YOUR_CLIENT_SECRET |
Deprecated — previous configuration (HTTP Adapter)
Configuration via HTTP Adapter with Base Url, Resource Path, and x-api-key header in Settings Override is deprecated. Use the Shopify destination configuration described above.
In addition to the basic data flow configuration, the following Settings Override settings were required:
| Field | Value | Notes |
|---|---|---|
Base Url | https://adapter.flowlyze.io | 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_CODICEALFANUMERICO | 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 |