---
title: "removeCondition"
slug: "api/basket/operations/removecondition"
sidebar:
  order: 475
---

<a id="ref-bdbdae3b80e8"></a>
<a id="ref-9870fec1d1d7"></a>
<a id="ref-0a163beec40d"></a>

## Synopsis

```text
boolean removeCondition(SessionId sessionId,
    BItemId[]           itemIds,
    string ppName,
    string condType,
    int counter,
    ItemSelectionOptions options)
throws BasketServiceFault;
```

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

Remove the specified condition.

The `ppName` argument may be an empty string if only one pricing procedure has been added to the basket. `counter` may be -1 if the calculation contains only one condition of the given type.

The operation fails if called for a folder.
