---
title: "remove(contentsOf:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/rangeset/remove(contentsof:)"
---

# remove(contentsOf:)

Removes the given range from the range set.

## Declaration

```swift
mutating func remove(contentsOf range: Range<Bound>)
```

## Parameters

- `range`: The range to remove from the set.

## Discussion

Discussion note: O(n), where n is the number of ranges in the range set.
