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

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

# ChartRobotRemovedEventArgs (class)

The class representing `RemovedEventArgs` for a `ChartRobot`.

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

- Cloud: Never raised in the cloud: the events that pass it never fire there (ChartRobots.RobotRemoved).

## Definition

```csharp
public class ChartRobotRemovedEventArgs : ChartRobotEventArgs
```

## Examples

C#:

```csharp
protected override void OnStart()
{
    Chart.Robots.RobotRemoved += OnChartRobotRemoved;
}

private void OnChartRobotRemoved(ChartRobotRemovedEventArgs args)
{
    Print("cBot {0} removed from the chart", args.Robot.Name);
}
```

Python:

```python
def on_start(self):
    api.Chart.Robots.RobotRemoved += self.on_chart_robot_removed

def on_chart_robot_removed(self, args):
    api.Print(f"cBot {args.Robot.Name} removed from the chart")
```

## Inherited members

- `public ChartRobot Robot {get;}` (from ChartRobotEventArgs) [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartRobotEventArgs/Robot/index.md)

