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

Copy Code
Remove-CsPersistentChatMessage -Identity "\ITChatRoom" -UserUri ""

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

Copy Code
Remove-CsPersistentChatMessage -Identity "\ITChatRoom" -UserUri "" -ReplaceMessage "This message is no longer available."

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