# clearAll method

Information note**STABLE.**   
  
This API is reliable and breaking changes are unlikely.

clearAll(lockedAlso)

Clears all selections in this state.

## Version history

Version history

| Version state | Details |
| --- | --- |
| Introduced | 2.2 |

## Parameters

### lockedAlso

Type: Boolean

Use to also clear locked fields.

## Returns

A promise of a Qlik associative engine reply.

Tip noteFor more information regarding a promise, see [The Promise API](https://code.angularjs.org/1.5.8/docs/api/ng/service/$q#the-promise-api).