---
id: "M:cAlgo.API.PriceAlerts.Remove(cAlgo.API.PriceAlert)"
kind: "method"
type: "T:cAlgo.API.PriceAlerts"
url: "https://help.ctrader.com/ctrader-algo/references/PriceAlert/PriceAlerts/Remove/"
---

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

# PriceAlerts.Remove

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

## Remove(PriceAlert priceAlert)

Removes a price alert.

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

- Cloud: Always empty: Count 0, Find null, FindAll empty, Remove false. Added/Removed/Updated/Triggered never raised.

C#:

```csharp
bool Remove(PriceAlert priceAlert)
```

Python:

```python
api.PriceAlerts.Remove(priceAlert: PriceAlert) -> bool
```

### Parameters

- `priceAlert` (`PriceAlert`, Python `PriceAlert`): Price alert

### Returns

`bool` — True if succeeded otherwise False.

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
foreach (var priceAlert in PriceAlerts.FindAll(SymbolName))
{
    var removed = PriceAlerts.Remove(priceAlert);
    Print("Alert {0} removed: {1}", priceAlert.Id, removed);
}
```

Python:

```python
for priceAlert in api.PriceAlerts.FindAll(api.SymbolName):
    removed = api.PriceAlerts.Remove(priceAlert)
    api.Print(f"Alert {priceAlert.Id} removed: {removed}")
```

