Move forums to the trash
Use administrative commands to move one or more forums to the Trash view.
- Start wsadmin...
cd app_server_root/profiles/Dmgr01/bin
./wsadmin.sh -lang jython
- 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.
- To move forums to the trash, generate a variable containing the forums to delete:
- 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)
- 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:
Purging forum trash on a schedule