shopify.delete

Sends a DELETE request to the specified Shopify API endpoint.

This action is used to delete resources like orders, products, or customers in Shopify.

Parameters

url: string API endpoint to call

Returns

Promise that is resolved with no return value.

Examples

Deletes a product
module.exports = async function(payload, actions, context) {
	const productId = '12345';

	const result = await actions.shopify.delete(
		`/admin/api/2024-01/products/${productId}.json`
	);
}