Delete a Server used for sending/receiving mail. NOTE: To protect your account, you'll need to
contact support and request that they enable this feature on your account before you can use this
client to delete Servers.
public deleteServer ( integer $id ) | ||
$id | integer | The ID of the Server to delete. :return DynamicResponseModel |
function testClientCanDeleteServer() { $tk = parent::$testKeys; $client = new PostmarkAdminClient($tk->WRITE_ACCOUNT_TOKEN, $tk->TEST_TIMEOUT); $server = $client->createServer('test-php-delete-' . date('c')); $client->deleteServer($server->id); $serverList = $client->listServers(); foreach ($serverList->servers as $key => $value) { $this->assertNotSame($value->id, $server->id); } }