message-store Get Messages after user has deleted a message

  • 1
  • Question
  • Updated 3 months ago
We would like to archive all Text messages sent to or from our extensions.  However, if a user deletes a message (by selecting a thread, right-clicking an individual message bubble, and choosing delete) from the desktop app, is that message now gone from Ring Central backend storage? Would a call to message-store Get Messages return this "deleted" message?

Or does this only hide it from the user (similar to how clearing the call log via the desktop app only really hides it for that user)?

Thanks!
Photo of John Harper

John Harper

  • 70 Points

Posted 3 months ago

  • 1
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 2,612 Points 2k badge 2x thumb
John, 

if user deletes a message it is marked as deleted first (you can check "availabilityStatus" parameter in API response) and then permanently deleted in a week. 
By default API does not return deleted messages. But you can specify explicitly if you want to see deleted messages by using "availabilityStatus" parameter in message-store API request.

Also please be aware that we have retention policy and messages can be deleted automatically - see more info here https://success.ringcentral.com/articles/RC_Knowledge_Article/2178