C H A P T E R  6

Uninstalling Content Delivery Server

If you have an instance of the Content Delivery Server that you no longer need, remove it from the host on which it is installed. You can remove only a deployment, or you can remove the entire product.

This section presents the following topics:


6.1 Uninstall a Deployment

You do not need to remove the entire product from a host if you only want to delete a deployment. If you have other deployments on the host, or want to do a new deployment after the existing deployment is removed, you can remove only the deployment that you no longer want.

6.1.1 Uninstall a Deployment on Sun Java System Application Server

To remove the deployment on a Sun Java System Application Server, follow these steps:

1. Change to the $CDS_HOME/deployment/deployment-name/sun/applications directory, where deployment-name is the name of the deployment that you want to remove.

2. Stop the Content Delivery Server.

See Section 5.2, Stopping the Content Delivery Server for instructions.

3. If you deployed a Message Queue Broker server, remove the server using the following command:

deploymq.sh server delete

4. Remove the application server domain using the following command:

deploy.sh delete


Note - You must be the root user to execute this command.



5. Delete the database schemas using the following command:

cdsi db delete [-conf database-configuration] [-user db-user-file]

database-configuration is the name of the database configuration file used to create the schemas. If database-configuration is omitted, the value specified for DEFAULT_DB in the init_env.sh script is used. db-user-file is the name of the database user file that contains the user name and password used to access the database. If db-user-file is not provided, the value specified for the DEFAULT_SYS_USER variable in the init_env.sh script is used.

6. Change to the $CDS_HOME directory.

7. Remove the directory that contains the deployment using the following command:

rm -rf $CDS_HOME/deployment/deployment-name

deployment-name is the name of the deployment that you want to remove.

6.1.2 Uninstall a Deployment on WebLogic Server

To remove the deployment on a WebLogic Server, follow these steps:

1. Stop the Content Delivery Server.

See Section 5.2, Stopping the Content Delivery Server for instructions.

2. Delete the database schemas using the following command:

cdsi db delete [-conf database-configuration] [-user db-user-file]

database-configuration is the name of the database configuration file used to create the schemas. If database-configuration is omitted, the value specified for DEFAULT_DB in the init_env.sh script is used. db-user-file is the name of the database user file that contains the user name and password used to access the database. I If db-user-file is not provided, the value specified for the DEFAULT_SYS_USER variable in the init_env.sh script is used.

3. Change to the $CDS_HOME directory.

4. Remove the directory that contains the deployment using the following command:

rm -rf $CDS_HOME/deployment/deployment-name

deployment-name is the name of the deployment that you want to remove.


6.2 Uninstall the Entire Product

If you no longer want any files associated with the Content Delivery Server on the host, use the following steps to remove the entire product:

1. Uninstall all deployments on this host.

See Section 6.1, Uninstall a Deployment.

2. Remove the home directory using the following command:

rm -rf cds-home

cds-home is the name of the directory that contains the product files.

3. Delete the $CDS_HOME environment variable.

4. Remove the $CDS_HOME/bin directory from the PATH environment variable.

5. Remove the contents of the /tmp directory to delete any temporary files created by the Content Delivery Server.