shopify.delete
IMPORTANT: This action is deprecated, use actions.shopify.graphql instead.
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
| Parameter | Description |
|---|---|
| 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/2025-10/products/${productId}.json`
);
}