---
title: "removeFromSetArticle"
slug: "api/basket/operations/removefromsetarticle"
sidebar:
  order: 444
---

<a id="ref-84cede217afa"></a>
<a id="ref-27dd07d9da70"></a>
<a id="ref-be19df7dadc1"></a>

## Synopsis

```text
void removeFromSetArticle(
    SessionId sessionId,
    BItemId[]       itemIds,
    OperationMode[]   opMode)
throws BasketServiceFault;
```

See also: [`SessionId`](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), [`BItemId`](/pCon/configuratorOnline/specs/api/basket/types/bitemid#ref-bccb6c926e5b), [OperationMode](/pCon/configuratorOnline/specs/api/basket/types/operationmode), [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault#ref-d5adb74faa1b)

This operation removes parts of set-articles from their set-article.

The operation searches the specified set of items for all items that are part of a set-article, and removes these items from their set-article. The list below describes the procedure in detail.

The flags in the operation mode 'opMode' control the behavior of the operation as described below.

1. From the set of items specified by the `itemIds` parameter, remove all items not currently part of a set-article.

2. Search the remaining set of items for sub-article items of composite articles whose main article item is not a member of this set. Add the main article items to the set if the `mainArticles` flag is set in `opMode`.

3. Remove sub-article items from the set.
