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

# deleteHistory(_:)

## Declaration

```swift
func deleteHistory<T>(_ descriptor: HistoryDescriptor<T>) throws where T : HistoryTransaction
```
