---
id: "T:cAlgo.API.ChartContainersRemovedEventArgs"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartContainersRemovedEventArgs/"
---

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

# ChartContainersRemovedEventArgs (class)

Provides data for the containers removed event.

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.

## Definition

```csharp
public class ChartContainersRemovedEventArgs
```

## Examples

C#:

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

private void OnChartContainersRemoved(ChartContainersRemovedEventArgs args)
{
    Print("{0} chart container(s) removed, remaining: {1}", args.RemovedChartContainers.Length, ChartManager.ChartContainers.Count);
}
```

Python:

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

def on_chart_containers_removed(self, args):
    api.Print(f"{len(args.RemovedChartContainers)} chart container(s) removed, remaining: {api.ChartManager.ChartContainers.Count}")
```

## Properties

- `public ChartContainer[] RemovedChartContainers {get;}` — Returns the removed containers. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartContainersRemovedEventArgs/RemovedChartContainers/index.md)

