Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

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

removeAll

Deletes multiple coupon codes in Optimizely Campaign.

A maximum of 1,000 codes can be deleted at one time.

Type: boolean[ ]

Parameters

NameTypeValue
sessionIdStringID of the current session
blockIdlongID of the coupon block
codesString[ ]Coupon codes to be deleted

Return values: For each submitted code:

  • true: Coupon code has been successfully deleted
  • false: Coupon code could not be deleted

Code structure

boolean[] removeAll(String sessionId, long blockId, String[] codes)