---
title: "removeTimeRange(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmutablecompositiontrack/removetimerange(_:)"
---

# removeTimeRange(_:)

Removes a time range of media from a composition track.

## Declaration

```swift
func removeTimeRange(_ timeRange: CMTimeRange)
```

## Parameters

- `timeRange`: The time range to remove.

## See Also

### Managing time ranges

- [segments](avfoundation/avmutablecompositiontrack/segments.md)
- [insertEmptyTimeRange(_:)](avfoundation/avmutablecompositiontrack/insertemptytimerange(_:).md)
- [insertTimeRange(_:of:at:)](avfoundation/avmutablecompositiontrack/inserttimerange(_:of:at:).md)
- [insertTimeRanges(_:of:at:)](avfoundation/avmutablecompositiontrack/inserttimeranges(_:of:at:).md)
- [scaleTimeRange(_:toDuration:)](avfoundation/avmutablecompositiontrack/scaletimerange(_:toduration:).md)
