Hello,
You can use getDocxPathQueryInfo or getWordContents to query if an element (such as a table, column or cell) contains a specific text content. With this information you can use removeWordContent to remove the needed elements.
We recommend you read the API pages of these methods and check and run the samples included in the package, that illustrate how to use all options.
Regards.