---
title: removeAll()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/indexset/removeall()
---

# removeAll()

Remove all values from the IndexSet.

## Declaration

```swift
mutating func removeAll()
```

## See Also

### Removing Elements

- [remove(_:)](foundation/indexset/remove(_:).md)
- [remove(integersIn:)](foundation/indexset/remove(integersin:)-7dhfw.md)
- [remove(integersIn:)](foundation/indexset/remove(integersin:)-54370.md)
