# DocumentClearOptions Enum

Namespace: [PIX.QMSAPI.DataObjects.Enums](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.QMSAPI.DataObjects.Enums.htm)  
Assembly: PIX.dll

These flags are used to define the behavior when removing selections from a document.

## Syntax

```
[Flags]
public enum DocumentClearOptions
```

### Fields

| Name | Description |
| --- | --- |
| ClearAllOneAndAlwaysOne |  |
| ClearSelections | Clear all unlocked selections. |
| ClearSelectionsWithUnlockBefore | Fields are unlocked before they are cleared. |
| UnlockAll | Unlocks all locked selections. |

### Extension Methods

[ApiFilter.FilterFor<DocumentClearOptions>(Nullable<ApiVersion>)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.ApiFiltering.ApiFilter.FilterFor.htm#PIX_ApiFiltering_ApiFilter_FilterFor__1___0_System_Nullable_PIX_ApiVersion__)