On a secondary computer or virtual machine (Computer B) with ArcGIS Desktop installed, it is challenging to remove the class extension on the enterprise geodatabase from this other computer because it is not the machine from which the feature class extension was registered. Attempts to programmatically apply the following code to remove the class extension (using an Engine Console App, or ArcMap add-in) are unsuccessful:
This is because ArcGIS Desktop or Engine must be registered with the class extension before it can be removed. The instructions provided describe how to remove a feature class extension from a geodatabase.
Copy the class extension DLL to the new computer, and register it by running EsriRegAsm.exe against Desktop or Engine.
Connect to the enterprise geodatabase (using a Direct Connect SDE connection) that contains the feature classes that have the associated class extension and programmatically remove the class extension by calling the following code: