
## clearHeadersFooters() {#default}

Clears the headers and footers of this section.


```js
clearHeadersFooters()
```

### Remarks

The text of all headers and footers is cleared, but [HeaderFooter](../../headerfooter/) objects themselves are not removed.

This makes headers and footers of this section linked to headers and footers of the previous section.




## clearHeadersFooters(preserveWatermarks) {#boolean}

Clears the headers and footers of this section.


```js
clearHeadersFooters(preserveWatermarks: boolean)
```

| Parameter | Type | Description |
| --- | --- | --- |
| preserveWatermarks | boolean | True if the watermarks shall not be removed. |

### Remarks

The text of all headers and footers is cleared, but [HeaderFooter](../../headerfooter/) objects themselves are not removed.

This makes headers and footers of this section linked to headers and footers of the previous section.




## See Also

* module [Aspose.Words](../../)
* class [Section](../)

