在 Lync Server 2013 中刪除訊息或清除過時的訊息Deleting a message or purging obsolete messages in Lync Server 2013

 

主題上次修改日期: 2014-02-05Topic Last Modified: 2014-02-05

Persistent Chat 系統管理員可以從 Persistent 聊天室刪除郵件 (,也可以選擇性地將其取代為另一封郵件) 。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. 例如,此 Windows PowerShell 命令會從使用者 kenmyer@litwareinc.com 所張貼的 ITChatRoom 聊天室中移除所有郵件:For example, this Windows PowerShell command removes all the messages from the ITChatRoom chat room that were posted by the user kenmyer@litwareinc.com:

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:

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

如需詳細資訊,請參閱 test-cspersistentchatmessage Cmdlet 的 [說明] 主題。For more information, see the help topic for the Remove-CsPersistentChatMessage cmdlet.