# DifferItemRemove

interface

A single diff item for removed nodes.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/model/differ.ts#L1691)

<a id="properties">

## Properties

<a id="member-action">

### `action: DifferItemAction`

Further specifies what kind of action led to generating this change.

The action is set in relation to the document state before any change. It means that, for example, if an element was renamed and then removed (during the same [batch](module_engine_model_batch-Batch.md)), the action will be set to `'remove'`, because when compared to the document state before changes, the element was removed, and it does not matter that it was also renamed at one point.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/model/differ.ts#L1705)

<a id="member-attributes">

### `attributes: Map<string, unknown>`

Map of attributes that were set on the item while it was removed.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/model/differ.ts#L1715)

<a id="member-length">

### `length: number`

The length of a removed text node. For elements, it is always 1, as each removed element is counted as a one.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/model/differ.ts#L1725)

<a id="member-name">

### `name: string`

The name of the removed element or `'$text'` for a text node.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/model/differ.ts#L1710)

<a id="member-position">

### `position: ModelPosition`

The position where the node was removed.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/model/differ.ts#L1720)

<a id="member-type">

### `type: 'remove'`

The type of diff item.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/model/differ.ts#L1696)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
