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

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

# FramesRemovedEventArgs.RemovedFrames

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

## RemovedFrames

Returns the removed frames.

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 Frame[] RemovedFrames {get;}
```

Python:

```python
framesRemovedEventArgs.RemovedFrames: list[Frame]
```

### Returns

`Frame[]` — 

### 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}")
```

