---
id: "M:cAlgo.API.ChartDraggables.Remove(cAlgo.API.ChartDraggable)"
kind: "method"
type: "T:cAlgo.API.ChartDraggables"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Draggables/ChartDraggables/Remove/"
---

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

# ChartDraggables.Remove

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

## Remove(ChartDraggable draggable)

Removes a draggable from chart area.

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

- CLI: Add returns a draggable that is never displayed; Remove sends nothing to any chart.
- Cloud: Add returns a draggable that is never displayed; Remove sends nothing to any chart.

C#:

```csharp
void Remove(ChartDraggable draggable)
```

Python:

```python
chartDraggables.Remove(draggable: ChartDraggable) -> None
```

### Parameters

- `draggable` (`ChartDraggable`, Python `ChartDraggable`): Draggable

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var draggable = Chart.Draggables.Add();
draggable.Child = new TextBlock { Text = "Temporary", BackgroundColor = Color.Black };
Chart.Draggables.Remove(draggable);
Print("Draggables on the chart: {0}", Chart.Draggables.Count);
```

Python:

```python
draggable = api.Chart.Draggables.Add()
textBlock = TextBlock()
textBlock.Text = "Temporary"
draggable.Child = textBlock
api.Chart.Draggables.Remove(draggable)
api.Print(f"Draggables on the chart: {api.Chart.Draggables.Count}")
```

