Delete libraries using the delete libraries tool
Use the delete libraries tool to delete multiple libraries, even when references exist to other libraries.
Note: Only the libraries specified in the URL are deleted. For example, if we 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 running this tool.
- Back up the database before the module is run as a precaution.
- First enable the delete libraries tool by adding the following parameters to the WCM WCMConfigService service 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
We must also edit the connect.businesslogic.module property, and add deletemultiplelibraries to the end of the comma-separated list.
- Log in to the portal as an administrator.
- Open the following URL in the browser and specify which libraries we want to delete:
http://[HOST]:[PORT]/wps/wcm/myconnect/?MOD=deletemultiplelibraries&libraries=libraryname1,libraryname2There are two methods available when the tool is run on a virtual portal:
- Use the URL context of a virtual portal:
http://[HOST]:[PORT]/wps/wcm/myconnect/[url_context]?MOD=deletemultiplelibraries&libraries=libraryname1,libraryname2
- Use the host name of a virtual portal:
http://[Virtual_HOST]:[PORT]/wps/wcm/myconnect?MOD=deletemultiplelibraries&libraries=libraryname1,libraryname2
Run the tool using the configuration engine
Run the run-wcm-admin-task-delete-libraries task from the wp_profile_root/ConfigEngine.
- IBM i
- ConfigEngine.sh run-wcm-admin-task-delete-libraries -Dlibraries="library1,library2" -DPortalAdminId=username -DPortalAdminPwd=password
- UNIX Linux
- ./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
- z/OS
- ./ConfigEngine.sh run-wcm-admin-task-delete-libraries -Dlibraries="library1,library2" -DPortalAdminId=username -DPortalAdminPwd=password
Note: When running this task on a virtual portal, add either -DVirtualPortalHostName=name or -DVirtualPortalContext=context to the command.
Parent topic: Web content administration tools