Deleting a Package
When you no longer need the services and files in a package, you can delete the package. When you delete a package, all the elements of the package (services, specifications, document types) become unavailable.
When you delete a package, you can optionally select to save a copy of the package. If you save a copy, the server copies the package to the
Integration Server_directory \instances\
instance_name\replicate\salvage directory before deleting the package from the
Integration Server_directory \instances\
instance_name\packages directory. If needed, you can recover the package at a later time. For instructions on recovering a deleted package, see
Recovering a Package.
Important:
Never delete the WmRoot package. The Integration Server uses the services in this package.
When you delete a package from the command prompt, you have the option of deleting a single package or a list of packages. For more information about deleting a package from the command prompt, see
Deleting Packages from a Server
Instance.
To delete a package
1. Open the Integration Server Administrator if it is not already open.
2. Go to Packages > Management.
3. If you want to save a copy of the package so you can recover it later if necessary, check the icon in the row that corresponds to the package you want to delete. 4. If you do not want to save a copy, click the icon in the row that corresponds to the package you want to delete. 5. Click Delete. The server asks you to confirm you want to delete the package. Click OK.
Note:
When you delete a package using the delete or safe delete options, Integration Server does not delete the jar files in the code/jars and code/jars/static directory. The jar files in code/jars folder are loaded by the Package class loader and jars files in code/jars/static folder are loaded by the Integration Server class loader. These jar files are locked by Integration Server and can only be deleted when Integration Server is shut down. If you install a new version of a package without removing the jar files for the old version of the package, Integration Server uses the old jar files with the new package version. This can result in inconsistent or unexpected behavior. To avoid this problem, before installing a new version of a deleted package, shut down Integration Server and delete any jar files left in the Integration Server_directory / instances/instanceName/ packages/packageName/code/jars and Integration Server_directory / instances/instanceName/ packages/packageName/code/jars/static directories.