# ClearAll Method

## Overloads

| [ClearAll(Boolean, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ClearAll.htm#Qlik_Engine_IApp_ClearAll_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.IApp.ClearAll.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ClearAll.htm)

## ClearAll(Boolean, String)

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

### Declaration

```

          void ClearAll([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 |