> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: removeProductsFromCollection(collectionId: string, productIds: Array) # Method package: wixStoresBackend # Method menu location: wixStoresBackend --> removeProductsFromCollection # Method Link: https://dev.wix.com/docs/velo/apis/wix-stores-backend/remove-products-from-collection.md # Method Description: Removes products by ID from a collection. The `removeProductsFromCollection()` function returns a Promise that resolves when the products with the given IDs are removed from a specified collection. You can remove multiple products from a collection at one time by delimiting the list of products with commas. If you do not specify any IDs, all products are removed from the collection. Removing products from a collection does not delete the products from the store. See [`deleteProduct()`](#deleteProduct) to delete a product from the store. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Remove products from a product collection ```javascript /******************************* * Backend code - products.jsw * *******************************/ import wixStoresBackend from 'wix-stores-backend'; export function removeProductsFromCollection(collectionId, productIds) { return wixStoresBackend.removeProductsFromCollection(collectionId, productIds); } /************* * Page code * *************/ import { removeProductsFromCollection } from 'backend/products'; // ... const collectionId = ... // get collection ID const productIds = ["id1", "id2", "id3"]; removeProductsFromCollection(collectionId, productIds) .then(() => { // products removed from the collection }) .catch((error) => { // products not removed from the collection }); ``` ---