# ClearSelections Method

## Overloads

| [ClearSelections(String, IEnumerable<Int32>)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.ClearSelections.htm#Qlik_Engine_IGenericObject_ClearSelections_System_String_System_Collections_Generic_IEnumerable_System_Int32__) |  | Clears the selections in a dimension of a visualization. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.ClearSelections.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.ClearSelections.htm)

## ClearSelections(String, IEnumerable&lt;Int32&gt;)

Clears the selections in a dimension of a visualization.

### Declaration

```

          void ClearSelections([QixName("qPath")] string path, [QixName("qColIndices")] IEnumerable<int> colIndices = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | path | Path to the definition of the visualization.<br>For example, `/qListObjectDef` . |
| System.Collections.Generic.IEnumerable&lt;System.Int32&gt; | colIndices | Array of dimension numbers or indexes. The selections are cleared in the specified dimensions.<br>Dimension numbers/indexes start from 0.<br>If this parameter is not set, all dimensions are cleared. |