Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

removeUnsubscribed

Deletes all unsubscribed recipients from a recipient list in Optimizely Campaign.

By default, the media type EMAIL is used. Use the setMediaType method to select another media type such as SMS.

Type: int

Parameters

NameTypeValue
sessionIdStringID of the session
recipientListIdlongID of the recipient list

Return values

Number of recipients that have been deleted

Code structure

int removeUnsubscribed(String sessionId, long recipientListId)