Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket


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


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)