Deleting libraries by using the delete libraries tool
Use the delete libraries tool to delete multiple libraries, even when references exist to other libraries.
Before you begin
Note: Only the libraries that are specified in the URL are deleted. For example, if you are deleting
Library A and Library B, but references exist to Library C, only Library A and Library B are
deleted. Library C would then contain broken references to the deleted libraries. Remove references
to other libraries before you run this tool.
- Back up your database before the module is run as a precaution.
- You must first enable the delete libraries tool by adding the
following parameters to the WCM WCMConfigService service
by using the WebSphere® Integrated Solutions Console:
- connect.businesslogic.module.deletemultiplelibraries.class=com.aptrix.pluto.util.DeleteMultipleLibrariesModule
- connect.businesslogic.module.deletemultiplelibraries.remoteaccess=true
- connect.businesslogic.module.deletemultiplelibraries.autoload=false
Procedure
Running the tool using the configuration engine
Run the run-wcm-admin-task-delete-libraries task from the wp_profile_root/ConfigEngine directory.- IBM® i
- ConfigEngine.sh run-wcm-admin-task-delete-libraries -Dlibraries="library1,library2" -DPortalAdminId=username -DPortalAdminPwd=password
- UNIX
- ./ConfigEngine.sh run-wcm-admin-task-delete-libraries -Dlibraries="library1,library2" -DPortalAdminId=username -DPortalAdminPwd=password
- Windows
- ConfigEngine.bat run-wcm-admin-task-delete-libraries -Dlibraries="library1,library2" -DPortalAdminId=username -DPortalAdminPwd=password
Note: When you run this task on a virtual portal, you
must add either -DVirtualPortalHostName=name or -DVirtualPortalContext=context to
the command.