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

# removeAllObjects()

Empties the map table of its entries.

## Declaration

```swift
func removeAllObjects()
```

## See Also

### Manipulating Content

- [setObject(_:forKey:)](foundation/nsmaptable/setobject(_:forkey:).md)
- [removeObject(forKey:)](foundation/nsmaptable/removeobject(forkey:).md)
