---
title: "deleteSections(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/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()](uikit/nsdiffabledatasourcesnapshot-swift.struct/deleteallitems().md)
- [deleteItems(_:)](uikit/nsdiffabledatasourcesnapshot-swift.struct/deleteitems(_:).md)
