Moving forums to the trashUse administrative commands to move one or more forums to the Trash view.
Before you beginTo run administrative commands, use the wsadmin client. See Starting the wsadmin client for details.
- From the dmgr host:
If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, pick the node where the file is stored.
- To move forums to the trash, first generate a variable containing the forums that you want to delete, and then delete the forums associated with that variable as follows.
- Create a variable that contains the forum or forums that you want to delete.
You can get a list of forums in hash table format using one of the fetchForums() commands. See Getting a list of forums for more information about the commands.
- Enter the following command to delete the forum or forums:
where you specify the forum or forums that you want to delete as the forums parameter. This parameter maps to the variable that you created in the previous step.
For example, if a person leaves the organization and you want to delete a forum owned by them, you use the following commands to generate a variable containing the forum and then delete the forum associated with that variable.
obsoleteForum=ForumsService.fetchForumsByName("Joes Forum") wsadmin>ForumsService.deleteForums(obsoleteForum)
Parent topicManage forum trash
Getting a list of forums
Purging forum trash on a schedule
Purging specific forum content from the trash
Restore deleted forum content