Removing unwanted or inappropriate content
Use administrative commands to update or remove inappropriate information stored in the Communities database.
Before you begin
Note: The following commands can also be
used to remove unwanted or inappropriate content from subcommunities.
About this task
The following commands can only be used to manage community content. To remove data from the applications that can be integrated with Communities, such as Activities, Blogs, Files, and Wikis, you need to refer to the application documentation for each specific application. See the links at the end of this topic for more information.
Note: When you use the commands, if the community name that
you provide as input to the command is not unique, an error similar
to the following displays:
WASX7015E: Exception running command: "CommunitiesService.updateCommunityDescription("My community", "updated by wsadmin cmd")"; exception information:
javax.management.RuntimeMBeanException
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: CLFRM0091E: Multiple communities found with name: My community
When
you see an error like this, instead of entering the name of the community
in the command, you must enter the UUID of the community instead.
For example:wsadmin>CommunitiesService.updateCommunityDescription("5742c4c8-0010-4e6e-abdb-65015e8a22e1", "updated first by wsadmin cmd")
You can obtain the UUID for a community or subcommunity
by doing one of the following:
- Using a browser, open the community or subcommunity that you want and copy the UUID from the URL.
- Run the CommunitiesService.fetchAllComm() wsadmin command to fetch all communities and subcommunities on the server. Copy the UUID from the output.
Procedure
To control community content using Communities administrative
commands, complete the following steps.