---
title: "deleteItems(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdiffabledatasourcesnapshot-swift.struct/deleteitems(_:)"
---

# deleteItems(_:)

Deletes the items with the specified identifiers from the snapshot.

## Declaration

```swift
mutating func deleteItems(_ identifiers: [ItemIdentifierType])
```

## Parameters

- `identifiers`: The array of identifiers corresponding to the items to delete from the snapshot.

## See Also

### Removing Items and Sections

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