# ClearAllAsync Method

## Overloads

| [ClearAllAsync(Boolean, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.ClearAllAsync.htm#Qlik_Engine_App_ClearAllAsync_System_Boolean_System_String_) |  | Clear selections in fields for current state. Locked fields are not cleared by default. |
| --- | --- | --- |
| [ClearAllAsync(AsyncHandle, Boolean, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.ClearAllAsync.htm#Qlik_Engine_App_ClearAllAsync_Qlik_Engine_AsyncHandle_System_Boolean_System_String_) |  | Clear selections in fields for current state. Locked fields are not cleared by default. |

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

## ClearAllAsync(Boolean, String)

Clear selections in fields for current state. Locked fields are not cleared by default.

### Declaration

```

          public Task ClearAllAsync([QixName("qLockedAlso")] bool lockedAlso = false, [QixName("qStateName")] string stateName = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Boolean | lockedAlso | When true, clears the selection for locked fields. |
| System.String | stateName | Alternate state name. When set, applies to alternate state instead of current |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

[IApp.ClearAllAsync(Boolean, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ClearAllAsync.htm#Qlik_Engine_IApp_ClearAllAsync_System_Boolean_System_String_)

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

## ClearAllAsync(AsyncHandle, Boolean, String)

Clear selections in fields for current state. Locked fields are not cleared by default.

### Declaration

```

          public Task ClearAllAsync(AsyncHandle asyncHandle, [QixName("qLockedAlso")] bool lockedAlso = false, [QixName("qStateName")] string stateName = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Boolean | lockedAlso | When true, clears the selection for locked fields. |
| System.String | stateName | Alternate state name. When set, applies to alternate state instead of current |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

[IApp.ClearAllAsync(AsyncHandle, Boolean, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ClearAllAsync.htm#Qlik_Engine_IApp_ClearAllAsync_Qlik_Engine_AsyncHandle_System_Boolean_System_String_)