Subscribers.Unsubscribe
Overview
Unsubscribes the specified subscriber from the listSyntax
Subscribers.Unsubscribe(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Attribute containing Email address of subscriber or a JSON object containing the EmailAddress and SubscriberKey values for the subscriber |
Example
This sample code removes the specified subscriber from the list.
var myList = List.Init("myList");
var status = myList.Subscribers.Unsubscribe("aruiz@example.com");