Delete a List

Delete List by List ID.


Function

  • deleteList()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • listId: int
    • list id to be deleted.

Return

  • int:
    • 1: success.
    • 0: failed

Exception

  • Exception

Documentation

  • Delete List by List ID.

Examples

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

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

        String username = "XXX";
        String password = "XXX";
        int listId = 123456;

        int result = ppt.deleteList(username, password, listId);

}
<?php
include 'puresend.php';

$p = new Puresend();

$deleteListData = new deleteList();
$deleteListData->username = 'XXX';
$deleteListData->password = 'XXX';
$deleteListData->listId = 1234;

$response = $p->deleteList($deleteListData);
var_dump($response);

?>