---
title: "deleteSections(withIdentifiers:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdiffabledatasourcesnapshotreference/deletesections(withidentifiers:)"
---

# deleteSections(withIdentifiers:)

Deletes the sections with the specified identifiers from the snapshot.

## Declaration

```swift
func deleteSections(withIdentifiers sectionIdentifiers: [Any])
```

## Parameters

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

## See Also

### Removing items and sections

- [deleteAllItems()](appkit/nsdiffabledatasourcesnapshotreference/deleteallitems().md)
- [deleteItems(withIdentifiers:)](appkit/nsdiffabledatasourcesnapshotreference/deleteitems(withidentifiers:).md)
