Skip to content

Instantly share code, notes, and snippets.

@randallknutson
Created July 17, 2015 15:26
Show Gist options
  • Save randallknutson/f3e20bffa24e15c493df to your computer and use it in GitHub Desktop.
Save randallknutson/f3e20bffa24e15c493df to your computer and use it in GitHub Desktop.
Delete Example
var request = require('request');
request(
{
url: 'https://{appname}.form.io/app/api/{resourcename}/submission/{submissionId}',
method: 'DELETE',
headers: {
'x-jwt-token': token
}
}
function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment