HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

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)

What’s Next
Did this page help you?