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

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

# FramesRemovedEventArgs (class)

Provides data for the frames 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 FramesRemovedEventArgs
```

## Examples

C#:

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

private void OnFramesRemoved(FramesRemovedEventArgs args)
{
    Print("{0} frame(s) removed, remaining frames: {1}", args.RemovedFrames.Length, ChartManager.Count);
}
```

Python:

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

def on_frames_removed(self, args):
    api.Print(f"{len(args.RemovedFrames)} frame(s) removed, remaining frames: {api.ChartManager.Count}")
```

## Properties

- `public Frame[] RemovedFrames {get;}` — Returns the removed frames. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/FramesRemovedEventArgs/RemovedFrames/index.md)

