Topic Last Modified: 2014-02-05

A Persistent Chat administrator can delete a message from a Persistent Chat room (and, optionally, can replace it with another message). Administrators can also purge obsolete messages as part of ongoing maintenance, to minimize growth of the database. For example, this Windows PowerShell command removes all the messages from the ITChatRoom chat room that were posted by the user kenmyer@litwareinc.com:

Copy Code
Remove-CsPersistentChatMessage -Identity "atl-persistentchat-001.litwareinc.com\ITChatRoom" -UserUri "sip:kenmyer@litwareinc.com"

And this example replaces any removed messages with the note that the message is no longer available:

Copy Code
Remove-CsPersistentChatMessage -Identity "atl-persistentchat-001.litwareinc.com\ITChatRoom" -UserUri "sip:kenmyer@litwareinc.com" -ReplaceMessage "This message is no longer available."

For more information, see the help topic for the Remove-CsPersistentChatMessage cmdlet.