Subscribers.Unsubscribe

Overview

Unsubscribes the specified subscriber from the list

Syntax

Subscribers.Unsubscribe(1)

Function Properties

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");
Last Updated: Jun 8, 2021