---
title: deleteAllItems()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsdiffabledatasourcesnapshotreference/deleteallitems()
---

# deleteAllItems()

Deletes all of the items from the snapshot.

## Declaration

```swift
func deleteAllItems()
```

## See Also

### Removing items and sections

- [deleteItems(withIdentifiers:)](appkit/nsdiffabledatasourcesnapshotreference/deleteitems(withidentifiers:).md)
- [deleteSections(withIdentifiers:)](appkit/nsdiffabledatasourcesnapshotreference/deletesections(withidentifiers:).md)
