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:
Last updated