---
id: "M:cAlgo.API.ComboBox.RemoveItem(System.String)"
kind: "method"
type: "T:cAlgo.API.ComboBox"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/ComboBox/RemoveItem/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ComboBox.RemoveItem

Member of [ComboBox](https://help.ctrader.com/ctrader-algo/references/Controls/ComboBox/index.md).

## RemoveItem(string item)

Removes an existing item from the ComboBox

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public void RemoveItem(string item)
```

Python:

```python
comboBox.RemoveItem(item: str) -> None
```

### Parameters

- `item` (`string`, Python `str`): The string value that will be removed from ComboBox

### Examples

C#:

```csharp
var comboBox = new ComboBox();
comboBox.AddItem("EURUSD");
comboBox.AddItem("XAUUSD");
comboBox.RemoveItem("XAUUSD");
Chart.AddControl(comboBox);
```

Python:

```python
comboBox = ComboBox()
comboBox.AddItem("EURUSD")
comboBox.AddItem("XAUUSD")
comboBox.RemoveItem("XAUUSD")
api.Chart.AddControl(comboBox)
```

