Unsubscribe

Sets a subscriber’s status to Unsubscribed.

Syntax 

Unsubscribe()

Example 

To use the Unsubscribe() function, you must first initialize the subscriber object. Next, call the Unsubscribe() function on the initialized object.

1var subObj = Subscriber.Init("SubKey");
2var status = subObj.Unsubscribe();