Polls API
  • Polls API Documentation
  • API Introduction
  • API
    • Create poll
    • Get poll by Id
    • Get all polls
    • Get polls by identifer
    • Create Vote
    • Get Vote by Id
    • Get all votes on a poll
    • Get all votes with identifier
    • Remove vote
    • Remove Poll
Powered by GitBook
On this page
  • Delete Poll
  • Request Body

Was this helpful?

  1. API

Remove Poll

Delete the poll

Deleting a Poll will remove all the data for the Poll including the Options and Votes.

Delete Poll

POST https://api.pollsapi.com/v1/remove/poll

Headers

Name
Type
Description

Content-Type

string

application/json

api-key

string

API Key for your account

Request Body

Name
Type
Description

poll_id

string

ID of the poll to be deleted

{ 
    "status": "success", 
    "statusCode": 200, 
    "data": true 
}
curl -X POST https://api.pollsapi.com/v1/remove/poll \
  -H "content-type: application/json" \
  -H "api-key: $API_KEY" \
  -d '
  {
      "poll_id": "5f9f7b186477891e5bc646a1"
  }
'

Request Body

{
    "poll_id": "5f9f7b186477891e5bc646a1"
}

PreviousRemove vote

Last updated 4 years ago

Was this helpful?