-
nick_behrens89Asked on November 9, 2016 at 5:53 PM
I'd like to be able to delete a submission via the API. Currently I can pull up a submission by typing this into my URL bar:
https://api.jotform.com/submission/354526142941661845?apiKey=19246d4c7e04c123b6fa5f28d2b54610
Can I add a "/delete" or something in there somewhere to make it delete the submission?
-
Elton Support Team LeadReplied on November 9, 2016 at 9:48 PM
I think we do not have such parameter to delete the submission.
You may consider using cURL or PHP code to handle the deletion.
Example:
For cURL
curl -X DELETE "https://api.jotform.com/submission/{submissionID}?apiKey={apiKey}"
For PHP
$jotformAPI = new JotForm("YOUR API KEY");
$result = $jotformAPI->deleteSubmission("SUBMISSION ID");
Let me also escalate this to our developers. They'll decide if this can be implemented or not and update you here. Unfortunately, I don't know much about the possible risk of having this functionality so I can't give you any further words on this.
Thanks!
-
nick_behrens89Replied on November 9, 2016 at 11:44 PMNo need! Figured it out.
Built a tool that integrates Jotform and Filemaker through the API. Works awesome now! Thanks!!!!!
Sent from my iPhone
...