Delete a subscriber

v1
delete
/1/newsletters/{domain}/subscribers/{subscriber}

It will remove the subscriber from your account, but all their information is still kept in case they re-subscribe to your list.

If you need, to forget a subscriber use /forget.

Path parameters

domain
requiredinteger

Unique identifier of the Domain

Examples:91985
subscriber
requiredinteger

Unique identifier of the Subscriber

Examples:22094

Response Body

application/json
resultstring
Possible values:successerrorasynchronous

Result of the HTTP request

Examples:success
databoolean

Example request

                <?php
use GuzzleHttp\Client;

$client = new Client();
$headers = [
	'Authorization' => 'Bearer YOUR-TOKEN-HERE',
	'Content-Type' => 'application/json'
];

$request = new Request('DELETE', 'https://api.infomaniak.com/1/newsletters/{domain}/subscribers/{subscriber}', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
            

Example response

application/json
                
                    
{
"result":"success",
"data":false
}