HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

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)

What’s Next
Did this page help you?