How to "blow out" Messages.app history, etc.?
I'm trying to write a logout hook to blow out the Messages.app chat history (and other things) when the user logs out. I've tried deleting the following:
rm -rf /Users/MyUsername/Library/Messages
rm /Users/MyUsername/Library/Preferences/com.apple.iChat.*
rm /Users/MyUsername/Library/Preferences/com.apple.imessage*
rm /Users/MyUsername/Library/Preferences/com.apple.imservice.*
rm /Users/MyUsername/Library/Preferences/ByHost/com.apple.iChat.*
rm /Users/MyUsername/Library/Preferences/ByHost/com.apple.imservice.*
rm -rf /Users/MyUsername/Library/Caches/com.apple.Messages
rm -rf /Users/MyUsername/Library/Caches/com.apple.ichat.TranscriptRenderingService
rm -rf /Users/MyUsername/Library/Caches/com.apple.iChat
rm -rf /Users/MyUsername/Library/Containers/com.apple.iChat
There's absolutely nothing left in the ~/Library folder with the words "iChat", "iMessage" or "Messages" left in them, yet I can't get the Messages.app to do any of the following:
- delete/remove chat history
- reset preferences
- "forgot" passwords
- remove accounts
If anyone has any suggestions in terms of what I'm missing, it'd be greatly appreciated.
Thanks,
Kristin.