Skip to main content

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.

Nota

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.

FieldValueNotes
Destination TypeShopify
OperationDelete productPOST /egress/delete-product-to-shopify
GraphQL endpoint URLhttps://SHOPIFYURL.myshopify.com/Shopify Admin GraphQL endpoint URL
Admin API access tokenshpat_CODICEALFANUMERICOOr Client ID (API key) + Client secret — see Authentication
Client ID (API key)YOUR_CLIENT_ID
Client secretYOUR_CLIENT_SECRET

Deprecated — previous configuration (HTTP Adapter)

Deprecated

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:

FieldValueNotes
Base Urlhttps://adapter.flowlyze.ioURL of the adapters
Resource Path/api/adp/shopify/egress/delete-product-to-shopifyPath of the adapter for the deletion flow
Headers :: x-api-key**********API key used to validate endpoint interaction
Headers :: x-shopify-graphql-urlhttps://SHOPIFYURL.myshopify.com/URL of the Shopify store to connect to
Headers :: x-shopify-access-tokenshpat_CODICEALFANUMERICOSecret of the custom app created for integration
Headers :: x-shopify-client-idYOUR_CLIENT_IDClient ID of the integration app
Headers :: x-shopify-client-secretYOUR_CLIENT_SECRETClient secret of the integration app