I'm trying to remove all subscribers from a suppression list, I have been able to get one in particular to be deleted, but I have not been able to do it for all of them. How could it be done? Thanks in advance
var req = api.retrieve("List",
["ListName", "ID"],
{
Property: "ListName",
SimpleOperator: "equals",
Value: "MySuppressionList"
}
);
var listId = req.Results[0].ID;
var res = api.updateItem("Subscriber", {
SubscriberKey: "XXXXXXXXXX",
EmailAddress: "XXXXXXXXXXX",
Lists: [
{
ID: listId,
Action: "delete"
}
]
});