Endpoint Delete a product variant
Name
delete_product_variant
Description
Deletes a specific product variant. [API reference]
Related Tables
Parameters
Parameter | Required | Options |
---|---|---|
Name:
Label: Product Variant Id The ID of the product variant to be deleted. |
YES |
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(4000)
|
4000 | |
Response |
DT_WSTR
|
nvarchar(255)
|
255 |
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
Id |
DT_I8
|
bigint
|
Examples
SSIS
Use Shopify Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
There are no parameters to configure. |

API Destination
This Endpoint belongs to the ProductVariants table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to delete a product variant:
There are no parameters to configure. |

ODBC application
Use these SQL queries in your ODBC application data source:
Delete an existing product variant
This example shows how to delete an existing product variant by Variant Id.
DELETE FROM ProductVariants
WHERE Id=31900013854820
delete_product_variant
endpoint belongs to
ProductVariants
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Delete an existing product variant
This example shows how to delete an existing product variant by Variant Id.
DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM ProductVariants
WHERE Id=31900013854820';
EXEC (@MyQuery) AT [LS_TO_SHOPIFY_IN_GATEWAY];
delete_product_variant
endpoint belongs to
ProductVariants
table(s), and can therefore be used via those table(s).