Purging specific forum content from the trash
Use administrative commands to permanently delete a specific forum or forum topic by removing it from the trash. You do not need to check the Forums configuration file out or restart the server when using these commands.
Before starting
To use administrative commands, use the wsadmin client. See Starting the wsadmin client for details.
Procedure
To purge specific forum content from the trash...
- From the dmgr host:
cd $DMGR_PROFILE/bin
./wsadmin.sh -jython
execfile("forumsAdmin.py")
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 get a list of the deleted forum content currently in the trash, use the following commands.
ForumsTrashService.fetchForumsTrash()
Retrieves a list of the deleted forums currently in the trash
ForumsTrashService.fetchTopicsTrash()
Retrieves a list of the deleted forum topics currently in the trash.
- Identify the forum or forum topic that you want to purge from the trash.
- To delete a specific forum or forum topic from the trash permanently, use the following commands.
ForumsTrashService.purgeForumsTrash(vector <hashtable>)
Purges the specified forums from the trash, where you specify the forums that you want to delete using the <hashtable> parameter.
For example:
ForumsTrashService.purgeForumsTrash(forumtrash)
ForumsTrashService.purgeTopicsTrash(vector <hashtable>)
Purges the specified forum topics from the trash, where you specify the topics that you want to delete using the <hashtable> parameter.
For example:
ForumsTrashService.purgeTopicsTrash(topictrash)
Parent topic
Manage forum trash
Related tasks
Moving forums to the trash
Delete topics from forums
});