deleteOption()
deleteOption(optionId: number): Promise<PollWithOptions>
Delete a poll option.
Parameters:
optionId
(number): The ID of the option to be deleted.
Returns:
A
Promise
resolving to the updated poll object (PollWithOptions
) after deleting the specified option.
Example:
const result = await pollOptions.deleteOption(1);
console.log('Poll Option Deleted:', result);
Last updated