Hello,
Using DOCXPath you can clone (cloneWordContent) and remove contents (removeWordContent) in the document body, headers and footers. In the example folder available in the package you can find samples about using them with headers and footers.
Regards.