---
title: removeAllObjects()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nshashtable/removeallobjects()
---

# removeAllObjects()

Removes all objects from the hash table.

## Declaration

```swift
func removeAllObjects()
```

## See Also

### Manipulating Membership

- [add(_:)](foundation/nshashtable/add(_:).md)
- [remove(_:)](foundation/nshashtable/remove(_:).md)
