Forget a subscriber
v1
delete
/1/newsletters/{domain}/subscribers/{subscriber}/forget
It will remove the subscriber from your account and all information will be completely deleted in 30 days.
This feature is GDPR compliant.
domain
requiredinteger
Unique identifier of the Domain
Examples:48583
subscriber
requiredinteger
Unique identifier of the Subscriber
Examples:36724
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}/forget', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":false}