---
id: "P:cAlgo.API.ChartContainersRemovedEventArgs.RemovedChartContainers"
kind: "property"
type: "T:cAlgo.API.ChartContainersRemovedEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartContainersRemovedEventArgs/RemovedChartContainers/"
---

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

# ChartContainersRemovedEventArgs.RemovedChartContainers

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

## RemovedChartContainers

Returns the removed containers.

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

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
public ChartContainer[] RemovedChartContainers {get;}
```

Python:

```python
chartContainersRemovedEventArgs.RemovedChartContainers: list[ChartContainer]
```

### Returns

`ChartContainer[]` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    ChartManager.ChartContainers.ContainersRemoved += OnChartContainersRemoved;
}

private void OnChartContainersRemoved(ChartContainersRemovedEventArgs args)
{
    foreach (var container in args.RemovedChartContainers)
        Print("Container {0} removed", container.Id);
}
```

Python:

```python
def on_start(self):
    api.ChartManager.ChartContainers.ContainersRemoved += self.on_chart_containers_removed

def on_chart_containers_removed(self, args):
    for container in args.RemovedChartContainers:
        api.Print(f"Container {container.Id} removed")
```

