+

Search Tips   |   Advanced Search

Move forums to the trash

Use administrative commands to move one or more forums to the Trash view.

  1. Start wsadmin...

  2. Start the Forums Jython script interpreter by :

      execfile("forumsAdmin.py")

    If we are prompted to specify a service to connect to, enter 1 to select the first node in the list. Most commands can run on any node. If the command specifies a file by using a local file path, select the node where the file is stored.

  3. To move forums to the trash, generate a variable containing the forums to delete:

    1. Create a variable containing the forum or forums to delete. We can get a list of forums in hash table format by using one of the fetchForums() commands. For more information about the commands, see Fetch a list of forums.

      For example:

        variable=ForumsService.fetchForumsByName(java.lang.String forumName)

    2. Enter the following command to delete the forum or forums:

        ForumsService.deleteForums(java.util.Vector forums)

      where the forums parameter specifies the forum or forums to delete. This parameter maps to the variable that you created in the previous step.

      For example, if a user leaves the organization and to delete a forum that was owned by thems:

      obsoleteForum=ForumsService.fetchForumsByName("Joes Forum")
      wsadmin>ForumsService.deleteForums(obsoleteForum)


Parent topic:
Manage forum trash


Related:

Start the wsadmin client

Fetch a list of forums

Purging forum trash on a schedule

Purging specific forum content from the trash

Restore deleted forum content