Gets or sets whether IF fields will be unlinked from the document after they are evaluated.

public boolean UnlinkIfFields{get;set; }
Public Property UnlinkIfFields()As Boolean

This feature is available in OOXML files (DOCX/DOCM) only.

This property will only take effect if UpdateIfFields is set to true.
If set to true, all IF fields on the template will be removed after they are evaluated on the server side by the WordTemplate object. If set to false, the IF fields will remain in place whether or not they have been evaluated.
The result of the IF field and any contained mergefields will still be in the final document.

WordTemplate WordTempl =new WordTemplate();
WordTempl.UnlinkIfFields =true;
Dim WordTemplAs New WordTemplate()
WordTempl.UnlinkIfFields =True