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

remove

Deletes a single coupon code in Optimizely Campaign.

Type: boolean

Parameters

NameTypeValue
sessionIdStringID of the current session
blockIdlongID of the coupon block
codeStringCoupon code to be deleted

Return values

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

Code structure

boolean remove(String sessionId, long blockId, String code)