Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to collectionRemoveProducts

collectionRemoveProducts

mutation

Requires write_products access scope. Also: The user must have a permission to remove products from a collection.

Removes a set of products from a given collection. The mutation can take a long time to run. Instead of returning an updated collection the mutation returns a job, which should be polled. For use with manual collections only.

ID!required

The ID of the collection to remove products from. The ID must reference an existing manual collection.

[ID!]!required

The IDs of products to remove from the collection. The mutation doesn't validate that the products belong to the collection or whether the products exist.


Was this section helpful?

Anchor to CollectionRemoveProductsPayload returnsCollectionRemoveProductsPayload returns

The asynchronous job removing the products.

The list of errors that occurred from executing the mutation.


Was this section helpful?