Hello,
Since the release of phpdocx 14.5 (https://www.phpdocx.com/news/post/phpdocx-v14-5-release-notes/232), Indexer (https://www.phpdocx.com/api-documentation/docxutilities/indexer-parse-word-documents-with-PHP) can extract input fields.
getDocxPathQueryInfo can also be used to get elements from a DOCX. On https://www.phpdocx.com/en/forum/default/topic/2282 you can read a post with the same question and how to accomplish this same task.
To remove elements from a DOCX, you can use removeWordContent available in DOCXPath.
Regards.