---
title: deleteAllItems()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsdiffabledatasourcesnapshot-swift.struct/deleteallitems()
---

# deleteAllItems()

Deletes all of the items from the snapshot.

## Declaration

```swift
mutating func deleteAllItems()
```

## See Also

### Removing Items and Sections

- [deleteItems(_:)](appkit/nsdiffabledatasourcesnapshot-swift.struct/deleteitems(_:).md)
- [deleteSections(_:)](appkit/nsdiffabledatasourcesnapshot-swift.struct/deletesections(_:).md)
