HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

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)

What’s Next
Did this page help you?