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