/ SDKs / iOS
SDKs
Chat SDKs iOS v4
Chat SDKs iOS
Chat SDKs
iOS
Version 4

Delete a poll option

Copy link

You can delete a poll option by specifying the pollId and the pollOptionId in the deletePollOption() method. Also channel operators can delete any poll option of a poll as well.

channel.deletePollOption(pollId: poll.pollId, pollOptionId: poll.options.first?.pollOptionId) { error in
    
}