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

# deleteSections(_:)

Deletes the sections with the specified identifiers from the snapshot.

## Declaration

```swift
mutating func deleteSections(_ identifiers: [SectionIdentifierType])
```

## Parameters

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

## See Also

### Removing Items and Sections

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