<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "swift: 5.9.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftData",
  "identifier" : "/documentation/SwiftData/HistoryDelete",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "SwiftData"
    ],
    "preciseIdentifier" : "s:9SwiftData13HistoryDeleteP"
  },
  "title" : "HistoryDelete"
}
-->

# HistoryDelete

An interface that enables a custom data store to delete items from the history of changes to its persisted models.

```
protocol HistoryDelete<Model> : Sendable
```

## Topics

### History deletion properites

[`var changeIdentifier: Self.ChangeIdentifier`](/documentation/SwiftData/HistoryDelete/changeIdentifier-swift.property)

The change identifier of the delete operation.

[`var changedPersistentIdentifier: PersistentIdentifier`](/documentation/SwiftData/HistoryDelete/changedPersistentIdentifier)

The changed persistent identifier of the delete operation.

[`var tombstone: HistoryTombstone<Self.Model>`](/documentation/SwiftData/HistoryDelete/tombstone)

The value the framework uses to represent information about data the Swift Data previously deleted from a model.

[`var transactionIdentifier: Self.TransactionIdentifier`](/documentation/SwiftData/HistoryDelete/transactionIdentifier-swift.property)

The delete operation’s transaction identifier.

### Associated types

[`associatedtype ChangeIdentifier : Comparable, Hashable, Sendable`](/documentation/SwiftData/HistoryDelete/ChangeIdentifier-swift.associatedtype)

The type associated with the change identifier.

[`associatedtype Model : PersistentModel`](/documentation/SwiftData/HistoryDelete/Model)

The type associated with the persistent model.

[`associatedtype TransactionIdentifier : Comparable, Hashable, Sendable`](/documentation/SwiftData/HistoryDelete/TransactionIdentifier-swift.associatedtype)

The type associated with the transaction identifier.

## Relationships

### Inherits From

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

### Conforming Types

[`DefaultHistoryDelete`](/documentation/SwiftData/DefaultHistoryDelete)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)