Delete wikis from the system 

Use the WikisLibraryService delete commands to delete wikis.


Before you begin

Use wikis administrative commands to see wiki library information to help you decide what wikis to delete, for example the WikisLibraryService.browseWiki command returns a list of wikis with information on each wiki. Use the returned information to see which wikis have not been updated in a long time. See the topic Wikis administrative commands for detailed information.

To use administrative commands, use the wsadmin client. See Starting the wsadmin client for details.

Many commands ask for IDs as input parameters, such as library IDs, user IDs, policy IDs, and file IDs. You can use commands that take parameters you do know to return data including the ID you are looking for. For example, run WikisMemberService.getByEmail(string email) providing a user's email address and among the data returned is the user's ID. You can also find IDs using feeds. See the Lotus Connections API documentation for information on getting ID information using feeds.


About this task

In the Wikis database context, a library contains the pages, attachments, and other data that make up a wiki. Wikis can be owned by a person or a community. However, you should delete community libraries following steps in the topic Delete orphaned data.


Procedure

  1. Start the wsadmin client.

  2. Start the Wikis Jython script interpreter using the following command:

      execfile("wikisAdmin.py")

  3. Run one of these commands to delete libraries:

    • Run this command to delete a single library:

        WikisLibraryService.delete(libraryId)

        where libraryId is the library id in the following standard Universally Unique Identifier (UUID) format: 00000000-0000-0000-0000-000000000000.

    • Run this command to delete multiple libraries:

        WikisLibraryService.deleteBatch(filePath)

        where filePath is the full path to a text file containing a list with a single library id per line in the following standard Universally Unique Identifier (UUID) format: 00000000-0000-0000-0000-000000000000. You must create the file and save it in a directory local to the server where you are running the wsadmin processor.


Parent topic

Administer Wikis


Related tasks


Printing library information
Delete orphaned data
Starting the wsadmin client


   

 

});