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

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

# FavoriteTimeFrames.Remove

Member of [FavoriteTimeFrames](https://help.ctrader.com/ctrader-algo/references/Plugin/TimeFrame/FavoriteTimeFrames/index.md).

## Remove(TimeFrame timeFrame)

Removes a time frame from favorite TimeFrames.

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
bool Remove(TimeFrame timeFrame)
```

Python:

```python
favoriteTimeFrames.Remove(timeFrame: TimeFrame) -> bool
```

### Parameters

- `timeFrame` (`TimeFrame`, Python `TimeFrame`): TimeFrame

### Returns

`bool` — True if succeeded otherwise False.

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
var isRemoved = TimeFrameManager.Favorite.Remove(TimeFrame.Hour4);
Print("Hour4 removed from favorites: {0}", isRemoved);
```

Python:

```python
isRemoved = api.TimeFrameManager.Favorite.Remove(TimeFrame.Hour4)
api.Print(f"Hour4 removed from favorites: {isRemoved}")
```

