AMPscript
Add
Remove
Retrieve
Subscribers.Add
Subscribers.Retrieve
Subscribers.Tracking.Retrieve
Subscribers.Unsubscribe
Subscribers.Update
Subscribers.Upsert
Validate Your Server-Side JavaScript using WSProxy
Unsubscribes the specified subscriber from the list
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 |
This sample code removes the specified subscriber from the list.
1var myList = List.Init("myList");
2var status = myList.Subscribers.Unsubscribe("aruiz@example.com");