Subscribers.Unsubscribe

Overview

Unsubscribes the specified subscriber from the list

Syntax

Subscribers.Unsubscribe(1)

Function Properties

<!--complex table-->
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");