Shopify Connector
Documentation
Version: 2
Documentation
Endpoint

Delete a product variant


Name

delete_product_variant

Description

Deletes a specific product variant. [API reference]

Related Tables

ProductVariants

Parameters

Parameter Label Required Options Description
Id Product Variant Id YES The ID of the product variant to be deleted.

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
Id DT_WSTR nvarchar(4000) 4000 False
Response DT_WSTR nvarchar(255) 255 False
If the column you are looking for is missing, consider customizing Shopify Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
Id DT_I8 bigint False
Required columns that you need to supply are bolded.

Examples

SSIS

Use Shopify Connector in API Source component to read data or in API Destination component to read/write data:

Delete rows from ProductVariants table using API Destination

This Endpoint belongs to ProductVariants table, therefore you cannot work with it directly. Use this table and table-operation pair instead:

Shopify
ProductVariants
Delete
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Delete a product variant

SELECT * FROM delete_product_variant

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 a product variant

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM delete_product_variant';

EXEC (@MyQuery) AT [LS_TO_SHOPIFY_IN_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).