Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket


Deletes multiple coupon codes in Optimizely Campaign.

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

Type: boolean[ ]


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)