# Remove duplicates from list transform action

## Use case

You are working with a list of users however, the dataset contains multiple objects with the same GUID, you would like to remove the duplicates from the list.

## Overview

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FmdR93jwH7PlBEyEH0WlX%2FScreenshot%202025-04-04%20at%203.12.19%E2%80%AFPM.png?alt=media&#x26;token=5e225091-cdc7-4258-871d-911054aa8a20" alt=""><figcaption></figcaption></figure>

Returns a list of unique items from the given list/iterable.

## Parameters

<table><thead><tr><th width="217">Parameter</th><th width="417.3333333333333">Description</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>Attribute</td><td>Filter objects with unique values for this attribute; Only required for lists of objects.</td><td>false</td></tr><tr><td>Case Sensitive</td><td>Treat upper and lowercase strings as distinct.</td><td>false</td></tr><tr><td>List</td><td>List to remove duplicates from.</td><td>true</td></tr></tbody></table>

{% hint style="info" %}
For nested field names, separate them by dots (e.g., `details.age`).
{% endhint %}

## Usage

<details>

<summary>Example 1: Filter List For Unique Objects Based On Username</summary>

### Inputs

\
**Attribute:** username\
**Case Sensitive:** False\
**List:**

```json
[
  {
    "member": true,
    "username": "Dan"
  },
  {
    "member": true,
    "username": "DAn"
  },
  {
    "member": true,
    "username": "dan"
  },
  {
    "member": true,
    "username": "DaN"
  },
  {
    "member": false,
    "username": "Bob"
  }
]

```

</details>

<details>

<summary>Example 2: Filter List of Integers For Unique Integers</summary>

### Inputs

\
**Attribute:** username\
**Case Sensitive:** False\
**List:**

<pre><code><strong>
</strong>```json
[ 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5 ]```
</code></pre>

</details>

## Results output

The expected output for this transform is a new list of the unique items from the previous list.

Result of Example 1:

```json
[
  {
    "member": true,
    "username": "Dan"
  },
  {
    "member": false,
    "username": "Bob"
  }
]
```

Result of Example 2:

```json
[
  1,
  2,
  3,
  4,
  5
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rewst.help/documentation/automations/actions-in-rewst/transform-actions/remove-duplicates-from-list-transform-action.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
