Undeploy all extensions using the wex shell (except the kernel)
Check if this exists in declarations.xconf and from codebase\wnc\Foundation\Windchill.xconf and remove this line:
<ConfigurationRef xlink:href="wex/packages/com.wincomplm/wex-kernel/wex.xconf"/>
From a Windchill shell run
xconfmanager -p
Remove the following file
codebase\config\mvc\wex-kernel-configs.xml
Remove the wex-kernel.jar from codebase/WEB-INF/lib area
Remove the entire wex directory from Windchill home directory