Home

 

Removing unwanted or inappropriate content

Use administrative commands to update or remove inappropriate information stored in the Communities database.


To use administrative commands, use wsadmin. See Start wsadmin for details.


As administrator, you can edit basic community information using wsadmin commands, for example, you can change a community's name, update a community's description, and remove tags or bookmarks from a community.

The commands listed below can only be used to manage community content. To remove data from the features that can be integrated with Communities, such as Activities, Blogs, Files, and Wikis, you need to refer to the feature documentation for each specific feature. See the links at the end of this topic for more information.

To control community content by changing Communities administrative settings...

  1. Start wsadmin so that you can access the Communities configuration files.

    1. Access the Communities configuration files:

      If you are asked to select a server, you can select any server.

  2. Use the commands below to make changes to content in various fields of a community in which you do not have owner access. You can use the commands to remove unwanted or inappropriate content.


    Commands for controlling community content

    Option Description
    CommunitiesService.updateCommunityName(String communityName, String newName) Allows you to update an existing community's name where:

    • communityName refers to the existing community name, which must be specified exactly

    • newName is the new name of the community

    Both communityName and newName must be enclosed in double quotes. For example:

      CommunitiesService.updateCommunity Name("JDs Community", "JDs New Name")
      

    CommunitiesService.updateCommunityDescription(String communityName, String newDescription) Allows you to update (overwrite) the description field in an existing community. Any existing description is overwritten by the new text that you enter into this command.

    Both communityName and newDescription must be enclosed in double quotes. For example:

      CommunitiesService.updateCommunity Description("Ski Community", 
      "The purpose of this community is to bring together people interested in skiing.")
      

    CommunitiesService.removeReferencesByUri(String communityName, String referenceURIs) Allows you to remove all references to one or more existing bookmarks (URIs) from a specified community.

    The command requires a two step process: First, create a comma-separated list of the bookmarks (URIs) that you want to remove from a community. These URIs are saved to a variable and this variable is used as input for the removeReferencesByUri command.

    Because the URIs are specified as a string, each URI must be enclosed in double quotes and separated by commas. All URIs must be enclosed within square brackets. The URI that is listed must match exactly the URI that is saved in the community or else this command fails.

    communityName is a string and must be enclosed in double quotes. For example:

      wsadmin>delete=["http://valid1.url.com", "http://valid2.url.com", "http://valid3.url.com"] wsadmin>CommunitiesService.removeReferencesByUri("Ski Club Community",delete)
      

    CommunitiesService.removeTagsFromCommunity(String communityName, String tagNames) Allows you to remove tags from an existing community. This command is a two step process. First, create a comma-separated list of tags to remove from a community. This list of tags is saved to a variable and the variable is used as input for the removeTagsFromCommunity command.

    You can remove tags on a community. You cannot remove tags associated with bookmarks or feeds within a community.

    Because the tags are specified as a string, each tag must be enclosed in double quotes and separated by commas. All tags must be enclosed within square brackets.

    communityName is a string and must be enclosed in double quotes. For example:

      wsadmin>tags=["snowboard", "mountain"] wsadmin>CommunitiesService.removeTagsFromCommunity("Ski Club Community",tags)
      


Manage community content

 

Related tasks

Delete user files from the system

Delete wikis from the system

Administer Blogs users

Delete activities


+

Search Tips   |   Advanced Search