# Deselect All Values from List

This is a pre-built Action located under the captured list element. The functionality of this Action in Avo Assure is to deselect all values that are already selected in the list. The result is stored in the given dynamic variable for further use during test execution

## Syntax

**Input Value**: `N/A`

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

**Output Value**: `<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)`

| Argument                                                    | Description                                                       |
| ----------------------------------------------------------- | ----------------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | Both dynamic variable stores the status as **True** or **False**. |

### Example: Deselecting All Values from a Multi Select List&#x20;

In this example, we explain how to deselects the multiple values which is already selected&#x20;

* **Action**: Deselect all Values from List&#x20;
* **Input Value**: N/A&#x20;
  * This action does not require any input value. It targets the captured multi-select list element and clears all selected items.&#x20;
* **Output Value**: {Status}&#x20;
  * The execution status of the deselection action is stored in the **{Status}** dynamic variable with the following possible values:&#x20;
    * **True**: If all values are deselected successfully.&#x20;
    * **False**: If all values are not deselected.&#x20;
* **Logical Explanation**: The **Deselect all Values from List** action executes without requiring any input. The action identifies the targeted multi-select list element and removes all currently selected options. The result of the operation (**True**) is stored in the **{Status}** variable.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FEnnOlrHo7BEBgz1g5sYa%2Funknown.png?alt=media&#x26;token=f2210cce-f673-429c-a630-df492c9e1bb2" alt=""><figcaption></figcaption></figure>
