Remove Duplicates
core.remove_duplicates · version 2 · Transform
Drop items that repeat, in this input or across runs.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | main | |||
| output 0 | main |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
operation | options | "removeDuplicateInputItems" | One of removeDuplicateInputItems, removeItemsSeenInPreviousExecutions, clearDeduplicationHistory. | ||
compare | options | "allFields" | One of allFields, allFieldsExcept, selectedFields. | ||
fieldsToExclude | string | compare = allFieldsExcept | Fields to Ignore. | ||
fieldsToCompare | string | compare = selectedFields | Fields to Compare. | ||
options | collection | ||||
options.disableDotNotation | boolean | false | Disable Dot Notation. Treat field names containing dots as plain keys instead of nested paths. | ||
options.removeOtherFields | boolean | false | compare = selectedFields | Keep Only Compared Fields. | |
logic | options | "removeItemsWithAlreadySeenKeyValues" | operation = removeItemsSeenInPreviousExecutions | Keep Items When. One of removeItemsWithAlreadySeenKeyValues, removeItemsUpToStoredIncrementalKey, removeItemsUpToStoredDate. | |
dedupeValue | string | logic = removeItemsWithAlreadySeenKeyValues | Key. Usually an expression such as the record id. | ||
incrementalDedupeValue | number | logic = removeItemsUpToStoredIncrementalKey | Number. | ||
dateDedupeValue | datetime | logic = removeItemsUpToStoredDate | Date. | ||
mode | options | "cleanDatabase" | operation = clearDeduplicationHistory | Clear. One of cleanDatabase. | |
options | collection | operation = removeItemsSeenInPreviousExecutions | History Options. | ||
options.scope | options | "node" | Shared By. One of node, workflow. | ||
options.historySize | number | 10000 | History Size. How many keys to remember. |
Import
Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.
| Source type | Version range | Status | Fixtures |
|---|---|---|---|
n8n-nodes-base.removeDuplicates | 1 | unverified | |
n8n-nodes-base.removeDuplicates | 2 | unverified |