> For the complete documentation index, see [llms.txt](https://docs.rewst.help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rewst.help/documentation/automations/actions-in-rewst/transform-actions/remove-duplicates-from-list-transform-action.md).

# 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

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:**

````

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

</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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.
