Delete Message

Deletes a Content Message.


Function

  • deleteMessage()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • message: Message
    • new message to replace existing message.
  • contentId: int
    • id of the message to delete.

Return

  • int:
    • id of the message to delete.

Exception

  • Exception

Documentation

  • Deletes a Content Message.
  • You cannot delete a message that has been used in a job.

Examples

public void deleteMessage() throws java.lang.Exception {

        Puresend p = new Puresend();
        PuresendPortType port = p.getPuresendHttpsSoap12Endpoint();

        String username = "XXX";
        String password = "XXX";

        int contentId = 1234;

        port.deleteMessage(username, password, contentId);

}    

<?php
include 'puresend.php';

$p = new Puresend();

$deleteMessageData = new deleteMessage();
$deleteMessageData->username = 'XXX';
$deleteMessageData->password = 'XXX';
$deleteMessageData->contentId = 1234;

$response = $p->deleteMessage($deleteMessageData);
var_dump($response);

?>