---
title: "Delete Empty Values in List Step"
url: "https://docs.robotiq.ai/en/article/delete-empty-values-in-list-step"
language: "en"
last_updated: "2025-12-24T14:46:41.714Z"
---

# Delete Empty Values in List Step

This step gets rid of all empty values from a chosen list variable. Use it to tidy up your data and make sure your lists only have useful information. This step only works with lists of text.

## How to Use Delete Empty Values in List

This step takes a list, removes empty entries, and saves the result to a new or existing list.

### Step 1: Add the Step to Your Process

1.  Drag and drop the "Delete Empty Values in List" step into your process.
2.  (Optional) In the "Step Name" field, give the step a custom name. This helps you find it in your process flow.

### Step 2: Set Up Input Parameters

1.  In the "Source list variable" field, pick the list variable that has the values you want to clean. This list must be a `ListOfStrings` data type.

### Step 3: Set Up Output Parameters

1.  In the "Destination list variable" field, type the name for the list that will hold the cleaned values. You can use a list that's already there or make a new one.
2.  In the "Element count" field, type a variable name. This number variable will store how many items are in the `Destination list variable` after empty values are gone.
3.  In the "Deleted count" field, type a variable name. This whole number variable will store how many empty items the step removed from the original list.

## Parameters Explained

**Step Name** (Optional)

-   A custom name for this process step.
-   Example: `Clean My String List`
-   Use this to make your process easier to understand.

**Source list variable** (Required)

-   The name of the list you want to work with.
-   This must be a list of text (`ListOfStrings`).
-   Example: `myOriginalList`

**Destination list variable** (Required)

-   The variable where the cleaned list will go.
-   You can pick an existing `ListOfStrings` variable or make a new one.
-   Example: `myCleanedList`

**Element count** (Required)

-   A number variable that will hold the count of items in the `Destination list variable`.
-   Example: `cleanedListCount`

**Deleted count** (Required)

-   A whole number variable that will store how many empty items were removed.
-   Example: `emptyValuesRemoved`

## Related Articles

-   [Delete Duplicate List Values Step](https://docs.robotiq.ai/en/article/delete-duplicate-list-values-step) - Learn how to remove repeated entries from a list.
-   [Add New Element To List Step](https://docs.robotiq.ai/en/article/add-new-element-to-list-step) - Add items to a list that's already there.
-   [Remove Item from List Step](https://docs.robotiq.ai/en/article/remove-item-from-list-step) - Remove specific items from a list by what they are or their position.
-   [Read String From List Step](https://docs.robotiq.ai/en/article/read-string-from-list-step) - Read values from a list of text.

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/5ad58850-9358-48ab-b774-6e47a188d617)
