Skip to main content
Anchor to collectionRemoveProducts

collectionRemoveProducts

mutation

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

Removes multiple products from a collection in a single operation. This mutation can process large product sets (up to 250 products) and may take significant time to complete for collections with many products.

For example, when ending a seasonal promotion, merchants can remove all sale items from a "Summer Clearance" collection at once rather than editing each product individually.

Use CollectionRemoveProducts to:

  • Bulk-remove products from collections efficiently
  • Clean up collection membership during catalog updates
  • Implement automated collection management workflows

The operation processes asynchronously to avoid timeouts and performance issues, especially for large product sets.

Learn more about collection management.

•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

•Job

The asynchronous job removing the products.

•[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?