listSegmentDelete()

Segment is deleted from the database.

If the segment is deleted, the information cannot be restored (!).
listSegmentDelete(string $sid) : boolean
Input parameters
  • id - segment ID

Information obtained
  • true if request for deleting segment has succeeded. Otherwise, an error message is returned.

Examples

mgapi_listSegmentDelete.php
listSegmentDelete($sid);
 
header("Content-Type: text/plain");
if ($api->errorCode) {
    echo "Unable to load listSegmentDelete()!\n";
    echo "\tCode=" . $api->errorCode . "\n";
    echo "\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Segment Deleted!\n";
}

© 2010-2017 Mailigen. All rights reserved.