Programmatically Removing Products (V1)
Last updated: May 9, 2024
Please note, this guide is specific to Nacelle V1, for V2 users please refer to our Ingestion API docs.
There are a number of ways to remove products from the Nacelle index. However, for deliberately removing products in bulk users should look to the ingest API.
To start, we'll be making a call to the following endpoint:
https://v1.dilithiumindex.com/graphql/shopify/delete-productNext, we'll need to add the following headers, and their corresponding values:
x-nacelle-space-id
x-nacelle-space-token
Content-Type (Use the default "application/json.")
Finally, we'll create the mutation to delete an entry:
mutation deleteProduct {
deleteProduct(input: {
id: "my-store.myshopify.com::my-product-handle::en-us",
pim: {
syncSource: "shopify",
syncSourceDomain: "my-store.myshopify.com",
defaultLocale: "en-us"
}})
}If successful, the request should return an a data object, with the the following object: "deleteProduct": true