Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

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

removeFolder

Deletes an existing folder in Optimizely Campaign.

The folder to be deleted must be empty.

Type: boolean

Parameters

NameTypeValue
sessionIdStringID of the current session
folderIdlongID of the folder to be deleted

Return values

  • true: The folder was successfully deleted.
  • false: The folder could not be deleted (e.g., because it is not empty).

Code structure

boolean removeFolder(String sessionId, long folderId)