---
title: "remove(charactersIn:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/characterset/remove(charactersin:)-1kqte"
---

# remove(charactersIn:)

Remove a closed range of integer values from the CharacterSet.

## Declaration

```swift
mutating func remove(charactersIn range: ClosedRange<Unicode.Scalar>)
```
