---
id: "E:cAlgo.API.ChartRobots.RobotRemoved"
kind: "event"
type: "T:cAlgo.API.ChartRobots"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Robots/ChartRobots/RobotRemoved/"
---

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

# ChartRobots.RobotRemoved

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

## RobotRemoved

Occurs when a Robot is removed from a chart.

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

- Cloud: Always empty: Count is 0, Add returns null, Remove returns false, and the events never fire.

C#:

```csharp
event Action<ChartRobotRemovedEventArgs> RobotRemoved;
```

Python:

```python
api.ChartRobots.RobotRemoved += handler  # handler(obj: ChartRobotRemovedEventArgs)
```

### Returns

`Action<ChartRobotRemovedEventArgs>` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    ChartRobots.RobotRemoved += OnRobotRemoved;
}

private void OnRobotRemoved(ChartRobotRemovedEventArgs args)
{
    Print("cBot removed: {0}", args.Robot.Name);
}
```

Python:

```python
def on_start(self):
    api.ChartRobots.RobotRemoved += self.on_robot_removed

def on_robot_removed(self, args):
    api.Print(f"cBot removed: {args.Robot.Name}")
```

