To remove a component, perform the following tasks:
Include project files.
Create an Component Manager Client API object.
Retrieve the component to remove.
Determine the components state.
Uninstall the component.
Include project files
Include necessary files into your development
project. If you are creating a client application by using Java,
include the necessary JAR files. If you are using web services,
make sure that you include the proxy files.
Create an Component Manager Client API object
Before you can
programmatically perform an Component Manager service operation,
you must create a ComponentRegistryClient object.
Determine the state of the component
To remove a component, first
ensure that it is not in a running state. If a component is running,
put the component into a stopped state.
Uninstall the component
After you stop the component and remove
its services, you can remove the component.