Chat / JavaScript
Chat JavaScript v4
Chat JavaScript
Chat
JavaScript
Home
/
Chat
/
JavaScript
/
Message
This is the new Docs for Chat SDK v4 for JavaScript. To see the previous Docs, click here.

Delete a poll

You can delete a poll by specifying the pollId and only the user who created the poll can delete the poll. Also channel operators can delete any poll in a channel as well.

await channel.deletePoll(pollId);