---
id: "M:cAlgo.API.ChartArea.RemoveAllObjects"
kind: "method"
type: "T:cAlgo.API.ChartArea"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/ChartArea/RemoveAllObjects/"
---

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

# ChartArea.RemoveAllObjects

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

## RemoveAllObjects()

Removes all interactive and non-interactive objects available for the cBot or Indicator.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
void RemoveAllObjects()
```

Python:

```python
chartArea.RemoveAllObjects() -> None
```

### Examples

C#:

```csharp
Chart.RemoveAllObjects();
Print("Objects left on the chart: {0}", Chart.Objects.Count);
```

Python:

```python
api.Chart.RemoveAllObjects()
api.Print(f"Objects left on the chart: {api.Chart.Objects.Count}")
```

