Hello,
The mergeDocx method doesn't include an option to remove specific headers/footers (only to keep or not the sections to be merged).
You can remove headers/footers before merging the documents. You can use removeHeaders/removeFooters to remove headers and footers, or DOCXPath (removeWordContent) to remove specific contents in a DOCX.
Regards.