---
title: "CollectionDifference.Change.remove(offset:element:associatedWith:)"
framework: swift
role: symbol
role_heading: Case
path: "swift/collectiondifference/change/remove(offset:element:associatedwith:)"
---

# CollectionDifference.Change.remove(offset:element:associatedWith:)

A removal.

## Declaration

```swift
case remove(offset: Int, element: ChangeElement, associatedWith: Int?)
```

## Discussion

Discussion The offset value is the offset of the element to be removed in the original state of the collection. A non-nil associatedWith value is the offset of the complementary change.
