+

Search Tips   |   Advanced Search

Delete community microblogs from the News repository

We can use an administrative command to remove orphaned community microblog data as part of the community widget lifecycle disaster recovery scenario.

A microblog is a status update message that is posted to a community activity stream. Microblog updates are displayed in the aggregated list of events in the Recent Updates widget in Communities. If a community owner adds the Status Updates widget to a community, microblog messages can also be seen in that widget. In addition, microblog messages are displayed when users filter the home page activity stream to show status updates for a community.The microblogs that display in the Recent Update and Status Updates widgets in Communities are stored in the News repository. If a database failure or some other disaster occurs or if the associated community data has been deleted, you might decide the orphaned microblog data in the News repository should be removed. The NewsMicrobloggingService.deleteMicroblogs command allows you to remove all microblog and associated data for a community from the News repository.

There is no support for deleting other types of events that display in the Recent Updates widget. For more information about removing orphaned data, see Delete orphaned data.

To delete community microblogs from the News repository.

  1. Access the News configuration file:

      cd app_server_root/profiles/Dmgr01/bin
      ./wsadmin.sh -lang jython
      execfile("newsAdmin.py")

  2. Run:

    NewsMicrobloggingService.deleteMicroblogs("communityId")

    Removes all microblog and associated data for a community from the News repository.

    The status messages are removed from the Status Updates widget in the community. The messages are also removed from the Updates views in Homepage. In addition, the Status Updates widget in the community is set so that no one can add status messages; the community owner can later change this setting by editing the community, selecting the Status Updates tab, and changing the Status Updates setting.

    Parameter, which is a string that specifies the ID of the community whose microblog data to delete.

    For example:

      NewsMicrobloggingService.deleteMicroblogs("e952cf0c-a86c-4e26-b1e0-f8bf40a75804")


Parent topic:
Administer microblogs


Related:
Delete microblog data
Recover from a database failure
Delete orphaned data
News administrative commands