---
id: "E:cAlgo.API.ChartManager.FramesRemoved"
kind: "event"
type: "T:cAlgo.API.ChartManager"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Chart/ChartManager/FramesRemoved/"
---

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

# ChartManager.FramesRemoved

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

## FramesRemoved

Occurs when frames are removed.

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
event Action<FramesRemovedEventArgs> FramesRemoved;
```

Python:

```python
api.ChartManager.FramesRemoved += handler  # handler(obj: FramesRemovedEventArgs)
```

### Returns

`Action<FramesRemovedEventArgs>` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    ChartManager.FramesRemoved += OnFramesRemoved;
}

private void OnFramesRemoved(FramesRemovedEventArgs args)
{
    foreach (var frame in args.RemovedFrames)
        Print("Frame removed: {0}", frame.Id);
}
```

Python:

```python
def on_start(self):
    api.ChartManager.FramesRemoved += self.on_frames_removed

def on_frames_removed(self, args):
    for frame in args.RemovedFrames:
        api.Print(f"Frame removed: {frame.Id}")
```

