Use the ForumsTrashService commands to restore deleted forum content from the trash with immediate effect. You do not need to check the Forums configuration file out or restart the server when using these commands.
Before you begin
To use administrative commands, you must use the wsadmin client. See Starting the wsadmin client
About this task
If you change your mind about deleting content from the Forums application, you can restore forum content from the trash. After a forum or forum topic is deleted, the deleted content can be preserved if it is restored.
To restore forum content that has been deleted, complete the following steps.
- Start the wsadmin client from the following directory of the system on which you installed the Deployment Manager:
is the WebSphere
® Application Server installation directory and <dm_profile_root>
is the Deployment Manager profile directory, typically dmgr01.
You must start the client from this directory or subsequent commands that you enter do not execute correctly. For more information, see Starting the wsadmin client
- Start the Forums Jython script interpreter using the following command:
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, you must pick the node where the file is stored.
- Do one of the following.
Identify the forums or forum topics that you want to restore from the returned list.
To restore deleted content, use the following commands.
- To get a list of the deleted forums currently in the trash, enter the following command:
- To get a list of the deleted forum topics currently in the trash, enter the following command:
ForumsTrashService.undeleteForumsTrash(vector <hashtable> )
Parent topic: Managing forum trash
Moving forums to the trash
Deleting topics from forums
ForumsTrashService.undeleteTopicTrash(vector <hashtable> )
Restores a deleted forum or forums, where you specify the forum or forums that you want to restore using the <hashtable>
Restores a deleted forum topic or topics, where you specify the topic or topics that you want to restore using the <hashtable>