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

remove

Deletes a coupon block in Optimizely Campaign. Assigned coupon codes contained within are not deleted.

Type: Boolean

Parameters

NameTypeValue
sessionIdStringID of the current session
blockIdlongID of the coupon block

Return values

  • true: Coupon block has been deleted successfully
  • false: Coupon block has not been deleted

Code structure

boolean remove(String sessionId, long blockId)