+

Search Tips   |   Advanced Search

Delete wikis from the system

Use the WikisLibraryService delete commands to delete wikis.

Many commands require an ID as an input parameter, including library IDs, user IDs, policy IDs, and file IDs. We can find an ID by using special commands. When we run the...

...where you provide a user's email address as input, the output includes the user's ID. We can also find IDs by using feeds. See Connections API documentation.

Use wikis administrative commands to see wiki library information that can help you decide what wikis to delete.

For example, the WikisLibraryService.browseWiki command returns a list of wikisi. Use the information in the report to see which wikis have not been updated in a long time. See Wikis administrative commands.

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.

  1. Start the wsadmin client.

  2. Start the Wikis Jython script interpreter :

      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 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 UUID format:

        00000000-0000-0000-0000-000000000000

      You must create the file and save it in a directory local to the server where we are running the wsadmin processor.


Parent topic:
Administer Wikis


Related:

Printing library information

Delete orphaned data

Start the wsadmin client