/ SDKs / JavaScript
SDKs
Chat SDKs JavaScript v4
Chat SDKs JavaScript
Chat SDKs
JavaScript
Version 4

Delete a poll

Copy link

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.

JavaScriptTypeScript
await channel.deletePoll(pollId);