This method is used to delete a message from a folder.
When a message is deleted, it's normally moved to a Trash folder and then a Deleted Trash folder before being permanently purged from the DataMotion account.
The trash deletion mechanism is controlled by the DataMotion Server.
Deleting a message only removes the message from the current user’s account.
It does not remove the message from the account of any other DataMotion users referenced in the message.
A session key must be submitted via the X-Session-Key header.
The request body should be left empty.
The message ID of the message you'd like to delete must be passed in the URL of this method.
Include "?Permanently=true" to force a message to be permanently deleted from the account, bypassing any Trash folders.
A successful transaction will receive a 200 status code.
delete https://sandbox.datamotion.com/SecureMessagingApi/Message/