Hi All, is there a way to delete all direct messages received?
I've tried the below but it just throws an exception
I've tried the below but it just throws an exception
var user = User.GetLoggedUser();
var Messages = user.GetLatestMessagesReceived();
foreach (var messagereceived in Messages)
{
messagereceived.Destroy();
}