---
title: "CFBagRemoveAllValues(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbagremoveallvalues(_:)"
---

# CFBagRemoveAllValues(_:)

Removes all values from a mutable bag.

## Declaration

```swift
func CFBagRemoveAllValues(_ theBag: CFMutableBag!)
```

## Parameters

- `theBag`: The bag from which all of the values are to be removed.

## See Also

### Modifying a Mutable Bag

- [CFBagAddValue(_:_:)](corefoundation/cfbagaddvalue(_:_:).md)
- [CFBagRemoveValue(_:_:)](corefoundation/cfbagremovevalue(_:_:).md)
- [CFBagReplaceValue(_:_:)](corefoundation/cfbagreplacevalue(_:_:).md)
- [CFBagSetValue(_:_:)](corefoundation/cfbagsetvalue(_:_:).md)
