---
title: "CFCharacterSetRemoveCharactersInString(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfcharactersetremovecharactersinstring(_:_:)"
---

# CFCharacterSetRemoveCharactersInString(_:_:)

Removes the characters in a given string from a character set.

## Declaration

```swift
func CFCharacterSetRemoveCharactersInString(_ theSet: CFMutableCharacterSet!, _ theString: CFString!)
```

## Parameters

- `theSet`: The character set to modify.
- `theString`: A string containing the characters to remove from theSet.

## See Also

### Removing Characters

- [CFCharacterSetRemoveCharactersInRange(_:_:)](corefoundation/cfcharactersetremovecharactersinrange(_:_:).md)
