Subscribers.Unsubscribe

Overview 

Unsubscribes the specified subscriber from the list

Syntax 

Subscribers.Unsubscribe(1)

Function Properties 

OrdinalTypeDescription
1stringRequiredAttribute 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");