Hello,
The removeWordContent is not available in Basic licenses:
https://www.phpdocx.com/api-documentation/docx-path/remove-elements-in-docx
You need to upgrade to Advanced, Premium or Bureau license to use this method.
On Features page you can read the features available in each license. On each API page is also detailed if a method is available or not in a license.
Regards.