> For the complete documentation index, see [llms.txt](https://pollz.gitbook.io/pollz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pollz.gitbook.io/pollz/api-reference/polloptions/deleteoption.md).

# 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:**

```javascript
const result = await pollOptions.deleteOption(1);
console.log('Poll Option Deleted:', result);
```
