---
title: "deleteHistory(_:)"
framework: swiftdata
role: symbol
role_heading: Instance Method
path: "swiftdata/historyproviding/deletehistory(_:)"
---

# deleteHistory(_:)

## Declaration

```swift
func deleteHistory(_ descriptor: HistoryDescriptor<Self.HistoryType>) throws
```
