deleteOne()
deleteOne(id: EntryIdType): Promise<void>
Delete a poll.
Parameters:
id
(EntryIdType): The ID of the poll to be deleted.
Returns:
A
Promise
resolving tovoid
indicating the successful deletion of the specified poll.
Example:
The deleteOne
method allows you to delete a specific poll identified by its unique ID (id
). Once deleted, the poll and its associated data, including options and votes, will be permanently removed from the system.
The method returns a Promise
resolving to void
, indicating the successful deletion of the specified poll.
Note: Ensure that the provided id
corresponds to an existing poll in the system.
Last updated