All endpoints

Developers / StrawPoll API / Forms

Delete a form

DELETE/forms/{slug}

Moves the form to the trash, where it can be restored with POST /forms/{slug}/restore until the trash is emptied. With permanent=true the form and all of its responses are deleted for good, also from the trash.

Needs an API key.

Parameters

Path

  • slug string required max. 20

    The form's public id, as in https://strawpoll.com/r/{slug}.

Query

  • permanent boolean

    Default: false

Responses

Done.

  • success boolean

Try it

Create a key

Sent from your browser straight to the API, nowhere else. With “Remember” on it stays until you close this tab. A read-only key lets you look around without changing anything.

DELETE https://new.strawpoll.com/api/v4/forms/{slug}

Paste an API key to send requests that need one.

Requests with a key count against your plan’s daily API requests.