Skip to main content
Version: 6.0.0

DeleteReceivedMessage

public BackndReturnObject DeleteReceivedMessage(string messageIndate);

Parameter

ValueTypeDescription
messageIndatestringindate of the received message to delete

Description

Deletes a message from the list of received messages.

Example

Synchronous

//Get the inDate of the message to delete.  
BackndReturnObject bro = Backnd.DirectMessage.GetReceivedMessageList();
string messageIndate = bro.Rows()[0]["inDate"]["S"].ToString();

Backnd.DirectMessage.DeleteReceivedMessage(messageIndate);

Asynchronous

//Get the inDate of the message to delete.  
Backnd.DirectMessage.GetReceivedMessageList(callback =>
{
string messageIndate = callback.Rows()[0]["inDate"]["S"].ToString();

Backnd.DirectMessage.DeleteReceivedMessage(messageIndate, callback2 =>
{
//Post-process
});

});

Return cases

Success cases

When the deletion is successful
statusCode : 204

Error cases

When there is no message for the corresponding messageIndate
statusCode : 404
errorCode : NotFoundException